Re: [Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 9:48 PM, Jordon Bedwell envyge...@gmail.com wrote: On Fri, Jan 25, 2013 at 9:24 PM, sagar p. li...@ruby-forum.com wrote: I apologize if I am unclear. My question was to access client's local file system, not the Heroku's. I wonder if your answer still sticks

Re: Ubuntu and derivatives (Re: Ubuntu.com Download Page)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 5:13 PM, Allison Randal alli...@ubuntu.com wrote: On 01/25/2013 02:38 PM, Scott Kitterman wrote: Each flavor has a dedicated landing page: kubuntu.org, edubuntu.org, xubuntu.org, ubuntustudio.org, mythbuntu.org, lubuntu.net. The one for *U*buntu (with *U* for Unity is

Re: Ubuntu and derivatives (Re: Ubuntu.com Download Page)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 5:24 PM, Allison Randal alli...@ubuntu.com wrote: That was meant to be *U* for Unity ;), but the winky got lost when I had to manually retrieve/resend the message. (Mailman isn't as smart as Launchpad about figuring out messages sent from one of many different aliases.)

[Compiz] [Bug 969860] Re: fglrx uses 100% CPU when screen turns off (spinning in glXWaitVideoSyncSGI or glXSwapBuffers)

2013-01-25 Thread Jordon Bedwell
This is an upstream bug, and it's been fixed in 13.1 so please either install 13.1 or wait until Ubuntu updates fglrx in the repository (even though they are practically the same -- minus a few differences -- if you build them.) ** Changed in: compiz (Ubuntu) Status: Confirmed = Invalid

Re: [Rails] group by + sum

2013-01-24 Thread Jordon Bedwell
On Thu, Jan 24, 2013 at 2:35 AM, Werner webagentur.la...@googlemail.com wrote: Hi.. I need some support... table: week_id, user_id, project_id, hours ex. = 33, 2, 1, 10 34, 2,1,15 33, 2, 2, 20 35, 3, 1,20 etc. Want to display a sum of hours per week_id per user_id I have: @hours =

Re: [Rails] group by + sum

2013-01-24 Thread Jordon Bedwell
On Thu, Jan 24, 2013 at 3:14 AM, Werner webagentur.la...@googlemail.com wrote: Feel a litte ittle stupid right now.. where to sort_by? Well, without a coherent though (AKA proper data outputs in the form of say a copy of the pry session where it outputs = { } and then you go through the steps I

Re: [Rails] Find Current Month ?

2013-01-24 Thread Jordon Bedwell
On Thu, Jan 24, 2013 at 6:24 AM, Maddy ashokku...@shriramits.com wrote: How to find current month? and How to collect current month data from our database? I'm not trying to be a dick, but these are fundamental tasks that you should have learned first. [1] pry(main) Time.new.strftime(%B) #=

Re: [Rails] Re: Fwd: HOW TO USE SSL IN SAVON

2013-01-24 Thread Jordon Bedwell
On Thu, Jan 24, 2013 at 9:32 AM, Almir Mendes li...@ruby-forum.com wrote: Do you find a solution? I'm having the same issue, the error only happen for a specific domain. http.auth.ssl.verify_mode = :none -- You received this message because you are subscribed to the Google Groups Ruby on

Re: Status of pry, ruby-method-source, and ruby-listen?

2013-01-23 Thread Jordon Bedwell
Morning, On Wed, Jan 23, 2013 at 8:54 AM, Praveen A prav...@gmail.com wrote: 2013/1/23 Antonio Terceiro terce...@debian.org: Please take some care to check it the packages you are creating are actually needed as a dependency for a Debian package of the applications you want to get into

Re: [Rails] Re: Rails 4: Should a HEAD request not be handled like a GET for CSRF protection?

2013-01-23 Thread Jordon Bedwell
On Wed, Jan 23, 2013 at 1:23 PM, Robert Walker li...@ruby-forum.com wrote: Michiel Sikkes wrote in post #1093276: I am running a Rails 4 app in semi-production and I constantly get exceptions from crawler bots that use a HEAD HTTP method, which causes the CSRF protection to kick in.

Re: [Rails] Need to change jquery version in my rails project

2013-01-22 Thread Jordon Bedwell
On Wed, Jan 23, 2013 at 12:36 AM, Saravanan P saravana...@shriramits.com wrote: Currently my rails 3.2.8 project loading jquery 1.9.0 In this jquery 1.9.0 live() method not working. How can i change loading jquery version? Please help. Remove jquery-rails from your Gemfile, use Google

Re: [Rails] Re: How to consume Asp.net web service in ruby on rails

2013-01-21 Thread Jordon Bedwell
On Mon, Jan 21, 2013 at 9:22 AM, Frederick Cheung frederick.che...@gmail.com wrote: Of those I've found savon to be very easy to use (and the relatively recent savon 2 is even better) Couldn't agree more, when I absolutely must work with SOAP I use Savon. -- You received this message because

Re: [Rails] Collect value

2013-01-21 Thread Jordon Bedwell
On Mon, Jan 21, 2013 at 11:21 AM, Rob Biedenharn r...@agileconsultingllc.com wrote: I tend to use a method like: module Enumerable # Returns a Hash keyed by the value of the block to the number times that # value was returned. If you have experience with the #group_by from #

Re: [Rails] Is a controller called home sort of a standard or best practice?

2013-01-20 Thread Jordon Bedwell
On Sun, Jan 20, 2013 at 2:05 PM, Dave Aronson googlegroups2d...@davearonson.com wrote: On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck don.sche...@gmail.com wrote: Is it pretty much a standard, best practice or just a good idea to create a controller called home and put, say, my web sites home

Re: [Rails] Get vars out of Controller

2013-01-19 Thread Jordon Bedwell
On Sat, Jan 19, 2013 at 6:13 PM, Benjamin Iandavid Rodriguez ian@gmail.com wrote: Or use the decent_exposure gem which I recommend since this lets you access your variables without exposing instance variables in the view context. Because attr_accesor doesn't exist, so the entire premise

Re: [Rails] Unable to install em-synchrony gem

2013-01-18 Thread Jordon Bedwell
You are using Debian-MRI (Debian-Ruby) you need to sudo before running gem install. If you want to install as a normal user use RVM or Chgems/Chruby. The hint was: ERROR: While executing gem ... (Gem::FilePermissionError) based on the username I'm going to also assume you are on AWS, which

Re: [Rails] redirect_to(session[:return_to]) vs session.delete

2013-01-18 Thread Jordon Bedwell
On Thu, Jan 17, 2013 at 7:37 PM, Alex M zap...@gmail.com wrote: Recently I've been looking into on how to return back to a previous referring URL and and the most common approach is: redirect_to session[:return_to] But some recommend: redirect_to(session.delete(:return_to) || default) How

Re: Improving Access to Themes etc.

2013-01-18 Thread Jordon Bedwell
On Fri, Jan 18, 2013 at 4:02 PM, Vesa Paatero vpaat...@lavabit.com wrote: By using the normal settings programs to configure the desktop, I could only see four themes to select from, two of which were high-contrast themes and the other two being Ubuntu themes with orange activation colors.

Re: [Rails] sql performance

2013-01-16 Thread Jordon Bedwell
On Wed, Jan 16, 2013 at 5:22 PM, Norm Scherer normsche...@earthlink.net wrote: On 01/16/2013 02:04 PM, Dave Aronson wrote: On Tue, Jan 15, 2013 at 5:25 AM, Werner webagentur.la...@googlemail.com wrote: Form entries are stored but on reload it gives me tons of: CACHE (0.0ms) SELECT

Re: [Rails] how to copy data from mysql to postgres?

2013-01-14 Thread Jordon Bedwell
On Mon, Jan 14, 2013 at 6:06 AM, Fahim Patel pafa...@gmail.com wrote: Is there any gem to copy data from mysql to postgres ? I search lot but i didn't get any thing . You're gonna have to figure that one out yourself by using 2 models and some clever trickery, or you might be able to dump the

Re: [Rails] ActiveResource: Disallowed type attribute: symbol in Rails 3.2.11

2013-01-14 Thread Jordon Bedwell
On Mon, Jan 14, 2013 at 8:23 AM, Paul p...@nines.org wrote: Has anyone started seeing the error: Disallowed type attribute: symbol I found this blog entry which seems to completely describe the problem: http://techtime.getharvest.com/blog/activeresource-xml-bug-fix-for-rails-3-dot-0-19 but

Re: [Rails] ActiveResource: Disallowed type attribute: symbol in Rails 3.2.11

2013-01-14 Thread Jordon Bedwell
On Mon, Jan 14, 2013 at 8:59 AM, Paul p...@nines.org wrote: I didn't quite understand what you mean by that fix. Do you mean the security fix which caused my problem or the patch described by the blog post I mentioned above which might relieve my problem? I've tracked down the line that I'm

Re: [Rails] Re: Send mail on Rails.logger.error

2013-01-13 Thread Jordon Bedwell
On Sun, Jan 13, 2013 at 5:42 AM, Crispin Schäffler crispinschaeff...@gmail.com wrote: I don't really know that much about the interns of Rails.logger.error method but how about overwriting it for your app? use alias on the old method and do something like this: alias :old_error :error def

Re: [Rails] Re: Send mail on Rails.logger.error

2013-01-13 Thread Jordon Bedwell
On Sun, Jan 13, 2013 at 6:06 AM, Crispin Schäffler crispinschaeff...@gmail.com wrote: Yeah, as I told, i don't know the insides of the error method or the correct specification.. Just wanted to give a hint how you could do it to get it to work quickly and without much trouble. And in my

Re: [Rails] Rspec: How to test create action in controller

2013-01-13 Thread Jordon Bedwell
On Sun, Jan 13, 2013 at 5:23 AM, Peter pe...@poproj.com wrote: I've searched high and low for the answer to this, so now I have to submit a question... # describe POST on Users#create do # before { post users_path } # specify { response.should redirect_to(root_path) }

Re: [Rails] Rspec: How to test create action in controller

2013-01-13 Thread Jordon Bedwell
On Sun, Jan 13, 2013 at 9:17 AM, Jordon Bedwell envyge...@gmail.com wrote: MyController ApplicationController def my_action redirect_to :back unless params[blah] == blah render :my_template end end Should be: MyController ApplicationController def my_action

Re: [Rails] Speeding up asset pre-compilation process

2013-01-08 Thread Jordon Bedwell
On Tue, Jan 8, 2013 at 5:10 AM, venkata reddy venkatareddy...@gmail.com wrote: My deployments are taking more time because of the asset precompilation process. I am using capistrano. I tried a couple of things to speed up this. 1) Overwriting the assets:precompile task, just to skip the

Re: [Rails] JSON::ParserError in controller

2013-01-07 Thread Jordon Bedwell
expected JSON you should contact them and ask them what went wrong. --- Jordon Bedwell http://envygeeks.com/ https://twitter.com/envygeeks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

Re: [Rails] Check if array content an object using include

2013-01-05 Thread Jordon Bedwell
On Sat, Jan 5, 2013 at 1:49 PM, Jean josor...@gmail.com wrote: I have the following array on my rails console: u.favorites [#Favorite id: 20, candidate_id: 6, ..., #Favorite id: 21, candidate_id: 7,.., #Favorite id: 22, candidate_id: 8, ..., #Favorite id: 23, candidate_id: 9, ..., #Favorite

Re: MRI 1.9.3p362

2013-01-03 Thread Jordon Bedwell
Morning. On Thu, Jan 3, 2013 at 12:38 PM, Antonio Terceiro terce...@debian.org wrote: On Fri, Dec 28, 2012 at 06:44:20PM +0100, James Healy wrote: I've updated my github copy[1] of the team's MRI repo to the latest release, 1.9.3p362. I'd love to see the latest MRI available in experimental

Re: [Rails] gem install rails - FAILS

2013-01-03 Thread Jordon Bedwell
On Wed, Jan 2, 2013 at 4:06 PM, Doug Royer douglasro...@gmail.com wrote: Very new to Ruby/Rails, followed the download/install instructions, until this step: gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to

Re: [Rails] How to Install Ruby and Rails

2013-01-03 Thread Jordon Bedwell
On Thu, Jan 3, 2013 at 4:05 AM, Colin Law clan...@googlemail.com wrote: On 3 January 2013 09:42, Nirav Bhatu li...@ruby-forum.com wrote: I want to install Ruby 1.8.7 and Rails 2.8.3,i am using ubuntu 11. Thank you Don't use Rails 2.8 unless you need to maintain an old app. Use rails 3 and

Re: [Rails] Re: How to avoid simple race conditions with Session?

2013-01-03 Thread Jordon Bedwell
On Thu, Jan 3, 2013 at 5:54 AM, PierreW wamre...@googlemail.com wrote: And also: in this instance I don't need any data merging. I just need to make sure each request (HTTP + following AJAX) is using its own stuff. Each request from different windows / tabs is completely independent. Why not

Re: Problem with Quantal and a KVM

2013-01-03 Thread Jordon Bedwell
On Thu, Jan 3, 2013 at 5:05 AM, Sander Smeenk ssme...@freshdot.net wrote: Quoting Jordon Bedwell (jor...@envygeeks.com): I agree, just did not want to say it. I get the feeling there are a lot of people working on Linux these days who have never set foot into a data centre. Your statement

Re: [Rails] RE: where is the rails 4 branch?

2013-01-01 Thread Jordon Bedwell
On Tue, Jan 1, 2013 at 8:37 PM, S Ahmed sahmed1...@gmail.com wrote: Where is the rails 4 branch? https://github.com/rails/rails You just linked to it... -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

Re: [Rails] RE: where is the rails 4 branch?

2013-01-01 Thread Jordon Bedwell
On Tue, Jan 1, 2013 at 9:05 PM, S Ahmed sahmed1...@gmail.com wrote: I wasn't expecting it to be the master branchis there a rough eta on it? When it's ready (tm). Not trying to be mean but that is the usual ETA. -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Encoding issues while doing bundle install

2012-12-28 Thread Jordon Bedwell
On Wed, Dec 26, 2012 at 6:28 PM, Shiv Deepak idlec...@gmail.com wrote: I was working on my web app while this bug (https://github.com/rails/rails/issues/4259) was giving me hard time. So I decided to try fixing it myself. I cloned rails from github; while doing bundle install I was facing some

Re: [Rails] Re: Is there any RAILS DUDE to HELP me out kick this problem?

2012-12-27 Thread Jordon Bedwell
On Thu, Dec 27, 2012 at 3:12 AM, Vibhor vibhor.maha...@gmail.com wrote: I've used it on both Ubuntu and Redhat Linux successfully. A friendly advice is to prefer a UNIX based environment - Linux or Mac for both development and deployment because many of the gems available are written in native

Re: [Rails] Re: Is there any RAILS DUDE to HELP me out kick this problem?

2012-12-27 Thread Jordon Bedwell
On Thu, Dec 27, 2012 at 4:05 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.com wrote: Because Linux is a unix-based operating-system. So is a mac. Since when is Linux based on Unix? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

Re: [Rails] Re: Is there any RAILS DUDE to HELP me out kick this problem?

2012-12-27 Thread Jordon Bedwell
On Thu, Dec 27, 2012 at 4:18 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.com wrote: Alright, to be politically correct, Linux is a unix-like operating system. http://en.wikipedia.org/wiki/Linux While you're at it read: http://en.wikipedia.org/wiki/Political_correctness Spoiler: It's not politically

Re: [Rails] rails memcached dalli Marshalling error for key

2012-12-25 Thread Jordon Bedwell
On Tue, Dec 25, 2012 at 5:09 AM, Pavlo Shabat pavlo.sha...@gmail.com wrote: You are trying to cache a Ruby object which cannot be serialized to memcached. What is includes and what does it return? It should be a String, Hash ({}), Array ([]), Fixnum (1), Range (1..2) or Float (1.0) for Dalli to

Re: Promote puppet to main?

2012-12-25 Thread Jordon Bedwell
On Tue, Dec 25, 2012 at 12:52 PM, Luis Mondesi lem...@gmail.com wrote: If somebody out there is starting something from scratch, use Chef/Puppet. If you are stuck with something old but useful, then try to start a new project with a modern system in parallel (use the old system to deploy the

Re: [Rails] Unable to connect to api.heroku.com

2012-12-24 Thread Jordon Bedwell
On Mon, Dec 24, 2012 at 3:46 AM, thil thil.1...@gmail.com wrote: I am under the corporate proxy/firewall setting. And api.heroku.com is dynamically changing their Ips. Heroku is not dynamically changing their IP's they are using round-robin DNS which is quite common to try and retain

Re: [Rails] Re: evaluating expressions left to right

2012-12-23 Thread Jordon Bedwell
meth3 - (meth2) - (meth1) The logic is that meth3 has to return so that meth2 can accept, process and return so that meth1 can accept, process and return. Don't read nested methods like you read a book, with nested methods the last to be nested is the first to be executed. On Sun, Dec 23, 2012

Re: [Rails] Getting rails installed on my mac

2012-12-23 Thread Jordon Bedwell
On Sun, Dec 23, 2012 at 9:31 AM, Pierre-Andre M. li...@ruby-forum.com wrote: I keep getting an error when I attempt to install rails. Yes, command-line tools is installed. $ sudo gem install rails Password: Building native extensions. This could take a while... ERROR: Error installing

Re: [Rails] Getting rails installed on my mac

2012-12-23 Thread Jordon Bedwell
On Sun, Dec 23, 2012 at 9:35 AM, Jordon Bedwell envyge...@gmail.com wrote: On Sun, Dec 23, 2012 at 9:31 AM, Pierre-Andre M. li...@ruby-forum.com wrote: I keep getting an error when I attempt to install rails. Yes, command-line tools is installed. $ sudo gem install rails Password: Building

Re: [Rails] question about html-pipeline

2012-12-21 Thread Jordon Bedwell
On Fri, Dec 21, 2012 at 10:40 PM, William Herry william.herry.ch...@gmail.com wrote: 1. where should I place this kind of code (format some content, markdown, emotion, highline syntax etc) 2. I see a cast about `Redcarpet`, it just place it in Gemfile and bundle install and then can use

Re: [Rails] Disable back button of browser

2012-12-20 Thread Jordon Bedwell
On Fri, Dec 21, 2012 at 12:32 AM, Maddy ashokku...@shriramits.com wrote: How to disable back button of browser?? You can't. It's the users browser, not yours. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] Disable back button of browser

2012-12-20 Thread Jordon Bedwell
On Fri, Dec 21, 2012 at 1:10 AM, Ashokkumar Yuvarajan ashokku...@shriramits.com wrote: Is there any another way?? My requirement is, once i clicks the browser back button my site redirect to home page. The saying it's more trouble than it's worth is particularly fitting in this situation. --

Re: [Rails] New Line

2012-12-16 Thread Jordon Bedwell
On Mon, Dec 17, 2012 at 12:49 AM, Samir samirkanta.d...@indusnet.co.in wrote: % @likes.each do |like| % %= like['name'] % % end % Can some one tell me how to use puts here. so that i can get my outputs in a new line format. %= % is puts to the template Engine (in your case ERB). If you

Re: [Rails] Re: Question: image_tag(source, options = {})

2012-12-16 Thread Jordon Bedwell
On Mon, Dec 17, 2012 at 12:55 AM, karthikeyan manivasagam li...@ruby-forum.com wrote: Use the options directly in image tag as how you use in html tag,but little convertion has to be done for Rails code, it will work HTML : img alt=logo src=logo.png align=right style=background-color:#288AC6;

Re: [Rails] save 2 value in diffrent field in one field at database

2012-12-15 Thread Jordon Bedwell
On Sat, Dec 15, 2012 at 9:53 PM, Mas Bejo li...@ruby-forum.com wrote: i want to get value from 2 diffrent field, first from text_field, and second from select_date, and i want to save it in one field TTL in database, this is the syntax, i change my model file to be like this: See:

Re: [Rails] How to add additional path for views location

2012-12-14 Thread Jordon Bedwell
On Fri, Dec 14, 2012 at 2:17 AM, Damjan Rems li...@ruby-forum.com wrote: How to add another path where views can be found. See: http://api.rubyonrails.org/classes/AbstractController/ViewPaths/ClassMethods.html#method-i-prepend_view_path ```ruby MyController ApplicationController

Re: [Rails] Re: How to add additional path for views location

2012-12-14 Thread Jordon Bedwell
On Fri, Dec 14, 2012 at 3:08 AM, Damjan Rems li...@ruby-forum.com wrote: Rails version doesn't matter to me because I only send code for 3.2 but that aside since it's not working with the first put it into a before_filter method or you can just provide before_filter with a proc/block. ```ruby

Re: [Rails] has_many :through

2012-12-14 Thread Jordon Bedwell
On Fri, Dec 14, 2012 at 5:48 PM, Jean josor...@gmail.com wrote: I'm new in rails and I've some doubts about what kind of relationship do I have to use. Here the case. I have two models Offer and User, a user could apply to many offers and offers can have many user also the users create the

Re: flashplugin-nonfree get-upstream-version.pl security concern

2012-12-13 Thread Jordon Bedwell
On Thu, Dec 13, 2012 at 1:47 PM, Davide Prina davide.pr...@gmail.com wrote: On 12/12/2012 23:26, Michael Gilbert wrote: Ultimately, for anyone even modestly security-conscious adobe flash should really be avoided at all costs. +1 I'm not an expert, but I think that packages like this must

Re: flashplugin-nonfree get-upstream-version.pl security concern

2012-12-12 Thread Jordon Bedwell
Hai, On Wed, Dec 12, 2012 at 12:33 PM, Bart Martens ba...@debian.org wrote: I already use mktemp -d /tmp/flashplugin-nonfree.XX. Isn't that secure ? What is the problem you are suggesting to file a bug for ? Please tell me you are trolling? -- To UNSUBSCRIBE, email to

Re: [Rails] Fatal Error during bundle install

2012-12-12 Thread Jordon Bedwell
On Wed, Dec 12, 2012 at 2:12 PM, nitesh narayanlal li...@ruby-forum.com wrote: Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in

Re: [Rails] Re: Fatal Error during bundle install

2012-12-12 Thread Jordon Bedwell
On Wed, Dec 12, 2012 at 2:23 PM, nitesh narayanlal li...@ruby-forum.com wrote: yes I have git installed , what does user path meant ? I'm not a Windows user so you have to Google Windows user path -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Associations

2012-12-11 Thread Jordon Bedwell
On Tue, Dec 11, 2012 at 3:49 AM, Avi aavinash.beh...@gmail.com wrote: If user -- has_many :address How can we do a build_address as it expects a has_one relationship? The association is created by a foreign key on addresses which should be `user_id` unless you want a custom field (for example

Re: [Rails] Get Emailid from Twitter

2012-12-11 Thread Jordon Bedwell
On Mon, Dec 10, 2012 at 11:57 PM, Dilkush Soni dilk...@neevtech.com wrote: Hi guys, Do u know any way to get email id from twitter in rails or in js. Elaborate email id do you mean the message ID that identifies the email on the server it originates from or? -- You received this message

Re: [Rails] New Ruby On Rails Group to Connect Midwest Developers

2012-12-11 Thread Jordon Bedwell
On Mon, Dec 10, 2012 at 9:39 PM, Joshua Woodward-Clarke jaxx...@gmail.com wrote: Very good point, especially to a facebook link. Atleast in this case the title gave some description. I was in, until you said Facebook. Then I was out. -- You received this message because you are subscribed to

Re: [Rails] ajax..

2012-12-11 Thread Jordon Bedwell
On Mon, Dec 10, 2012 at 6:23 AM, Werner webagentur.la...@googlemail.com wrote: Hope it is o.k. when I post a js/ ajax related to rails.. question here. I have a form with a select field. What I have in mind is to display an inline div with some db related infos when the select_field has

Re: [Rails] gem bundler is not install. I know, another one of these

2012-12-10 Thread Jordon Bedwell
On Mon, Dec 10, 2012 at 2:19 PM, Colin Law clan...@googlemail.com wrote: Post the output from gem list Also copy/paste here the output from bundle install. Gonna have to agree, to me it sounds like you installed on ruby-1.9.3-p327 instead of @global or @gemset_name. I've ran into issues if I

Re: [Rails] link_to popup

2012-12-09 Thread Jordon Bedwell
On Sun, Dec 9, 2012 at 10:55 PM, avinash behera aavinash.beh...@gmail.com wrote: Should we use javascript ot jquery to achieve this? link_to(:link, :title = Link Title, :onclick = javascript:(function(ele) { window.open(ele.href, ele.title,

Re: Possible inclusion of zram-config on default install

2012-12-07 Thread Jordon Bedwell
-1. I am not on a netbook and even my laptop have 12gb of Ram. It would be nice if Ubuntu did detect your ram and decide but not force it on people like me who aren't memory constrained. On Fri, Dec 7, 2012 at 4:32 PM, Fabio Pedretti fabio@libero.it wrote: It would be nice if Ubuntu could

Re: [Rails] Joining two tables giving ambigous column error on mysql

2012-12-06 Thread Jordon Bedwell
On Thu, Dec 6, 2012 at 10:20 PM, Sumit Srivastava sumit.theinvinci...@gmail.com wrote: I am doing a join of two tables with a column with same name in both. I am using includes to have a full join. This is giving ambiguous column error. The columns cannot be removed from either of those and

Re: [Rails] Unable to install pg gem file on CENT OS

2012-12-04 Thread Jordon Bedwell
Install postgresql-libs and also recompile your Ruby after install libyaml. On Tue, Dec 4, 2012 at 6:50 AM, PavanKumar Chamarthi pavankiumar...@gmail.com wrote: please help me in this... I am unable to install pg gem file [root@vdimc04 ~]# gem install pg -v '0.12.0'

Re: [Rails] Abridged summary of rubyonrails-talk@googlegroups.com - 37 Messages in 16 Topics

2012-12-04 Thread Jordon Bedwell
On Tue, Dec 4, 2012 at 5:09 PM, Arpit Prasad ar...@vertisystem.com wrote: We are seeking a front-end Rails developer who has experience developing consumer facing web sites. You should also probably hire an IT team that can teach you how to create topics on mailing lists, mostly (and hopefully)

Re: [Rails] Stop User from Changing URL

2012-12-03 Thread Jordon Bedwell
On Mon, Dec 3, 2012 at 8:42 AM, fuzzy hlog...@gmail.com wrote: If you change the url to any other page, ie, to contracts, you totally circumvent the authentication and authorization. Is there a way to use the authentication and authorization of 'employee' to prevent a user from changing the

Re: [Rails] Rails seo friendly urls

2012-12-03 Thread Jordon Bedwell
On Mon, Dec 3, 2012 at 8:49 AM, paul h p...@hollyer.me.uk wrote: I think the OP wants to hide the params completely, could he not create a route that uses POST instead of GET? Why would you use post instead of get? There is no need to change anything really (if your code is designed right at

[Ubuntu-x-swat] [Bug 969860] Re: fglrx uses 100% CPU when screen turns off (spinning in glXWaitVideoSyncSGI or glXSwapBuffers)

2012-12-02 Thread Jordon Bedwell
I forgot all about that until you had mentioned the 12.12 driver, for those of you who cannot wait you can get the 12.11 beta (which of course is the 12.12) and install it: http://support.amd.com/us/kbarticles/Pages/AMDCatalyst1211betadriver.aspx -- You received this bug notification because you

[Desktop-packages] [Bug 969860] Re: fglrx uses 100% CPU when screen turns off (spinning in glXWaitVideoSyncSGI or glXSwapBuffers)

2012-12-02 Thread Jordon Bedwell
I forgot all about that until you had mentioned the 12.12 driver, for those of you who cannot wait you can get the 12.11 beta (which of course is the 12.12) and install it: http://support.amd.com/us/kbarticles/Pages/AMDCatalyst1211betadriver.aspx -- You received this bug notification because you

[Bug 969860] Re: fglrx uses 100% CPU when screen turns off (spinning in glXWaitVideoSyncSGI or glXSwapBuffers)

2012-12-02 Thread Jordon Bedwell
I forgot all about that until you had mentioned the 12.12 driver, for those of you who cannot wait you can get the 12.11 beta (which of course is the 12.12) and install it: http://support.amd.com/us/kbarticles/Pages/AMDCatalyst1211betadriver.aspx -- You received this bug notification because you

[Compiz] [Bug 969860] Re: fglrx uses 100% CPU when screen turns off (spinning in glXWaitVideoSyncSGI or glXSwapBuffers)

2012-12-02 Thread Jordon Bedwell
I forgot all about that until you had mentioned the 12.12 driver, for those of you who cannot wait you can get the 12.11 beta (which of course is the 12.12) and install it: http://support.amd.com/us/kbarticles/Pages/AMDCatalyst1211betadriver.aspx -- You received this bug notification because you

Re: [Rails] heroku signalexception sigterm plbm

2012-12-01 Thread Jordon Bedwell
On Sat, Dec 1, 2012 at 6:49 AM, Bhimasen Routray bhimasen.rout...@gmail.com wrote: error signalexception sigterm in heroku rails.. how to solve it..anybody can help me? What are we supposed to help with? Because you sent absolutely no useful information, exception names are dime a dozen in most

Re: [Rails] heroku deployment

2012-12-01 Thread Jordon Bedwell
On Sat, Dec 1, 2012 at 6:46 AM, Bhimasen Routray bhimasen.rout...@gmail.com wrote: i want to deploy two rails application in heroku..so how can i deploy two application with one account in heroku and github..i am little confused that i have to take two rsa public key or how..thanks in advance

Re: [Rails] Re: How do you get the activerecord tests to NOT eat stdout or useful stack trace information?

2012-12-01 Thread Jordon Bedwell
On Sat, Dec 1, 2012 at 9:29 AM, Frederick Cheung frederick.che...@gmail.com wrote: Rails doesn't use rspec. It uses minitest (which is what test::unit is on 1.9). I don't think it has an equivalent fail fast option although there do appear to be some monkey patches floating around What has

Re: [Rails] How do you get the activerecord tests to NOT eat stdout or useful stack trace information?

2012-11-30 Thread Jordon Bedwell
On Fri, Nov 30, 2012 at 12:13 PM, Robert Buck li...@ruby-forum.com wrote: It would be nice if the test framework for rails AT LEAST spit out the line where this happened. You are blaming Rails for a problem created by another person? So, without any useful information from the test suite,

Re: [Rails] has_and_belongs_to_many for the same model

2012-11-29 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 9:33 PM, Soichi Ishida li...@ruby-forum.com wrote: I am wondering if has_and_belongs_to_many association can be used for a single model? Circular associations are possible, I do it all the time for comment systems. -- You received this message because you are

Re: [Rails] Is it ok to use struct as constants in initializer?

2012-11-29 Thread Jordon Bedwell
On Thu, Nov 29, 2012 at 3:47 AM, comopasta Gr li...@ruby-forum.com wrote: error_type = Struct.new(:code, :description) BAD_JSON = error_type.new(001 , Problem parsing JSON) BAD_XML = error_type.new(002 , Problem parsing XML) class MyClass class APIParseError StandardError def

Re: [Rails] Is it ok to use struct as constants in initializer?

2012-11-29 Thread Jordon Bedwell
On Thu, Nov 29, 2012 at 4:11 AM, Jordon Bedwell envyge...@gmail.com wrote: raise(MyClass::APIParseError.new(001, :XML)) #= MyClass::MyError: 001: Problem parsing XML This would actually display: MyClass::APIParseError I had a misspelling since I didn't run it through an REPL to get the output I

Re: [Rails] Adding a input field (select box) to a cell in a table that is rendered from controller

2012-11-29 Thread Jordon Bedwell
On Thu, Nov 29, 2012 at 4:15 AM, Colin Law clan...@googlemail.com wrote: The Rails Guide on Form Helpers shows you how to make select boxes. Remember that for valid html the entire table must lie within the form, or each cell must contain its own form. Aren't tables are violation of the HTML

Re: [Rails] Having two paths for a single action with different parameters

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 2:42 AM, Sumit Srivastava sumit.theinvinci...@gmail.com wrote: Hi, I have a controller named users and index action in it. By default I have the path get '/users' = 'users#index', :as = 'users' Now I want to create one more path with a different parameter being

Re: [Rails] Having two paths for a single action with different parameters

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 2:57 AM, sumit srivastava sumit.theinvinci...@gmail.com wrote: Yes, I did try this but it didn't. In fact, the custom route I defined, if I define it as following it works. get '/users' = 'users#index', :as = 'list_users' But as soon as I define the extra parameter

Re: [Rails] Having two paths for a single action with different parameters

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 3:17 AM, sumit srivastava sumit.theinvinci...@gmail.com wrote: I just found that the value I was passing had a . in it. And somehow this was creating problem. Not sure why. I experimented with other special Add value: /.*/ to the end of the /users/:city route. -- You

Re: [Rails] Rails seo friendly urls

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 3:12 AM, Maddy ashokku...@shriramits.com wrote: http://.com/product_details?category_id=produceproduct_id=fresh-georgia-peaches--17 That is not an SEO unfriendly URL. The highlighted (red) things are my params. http://guides.rubyonrails.org/routing.html -- You

Re: [Rails] Rails seo friendly urls

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 3:49 AM, Ashokkumar Yuvarajan ashokku...@shriramits.com wrote: Yes, am asking how can i optimize this url as a friendly url?? The link I sent tell you how to do it. Depending on how you have your actions setup depends on how easy it is. If your actions are designed to

Re: [Rails] Google Drive

2012-11-28 Thread Jordon Bedwell
On Tue, Nov 27, 2012 at 6:34 AM, bacancy nirav bacancy.ni...@gmail.com wrote: is there any solution for upload folder on google drive . Just a small tip for next time, normally if you ask Google search questions about Google products and integration it will send you to the right spot, but either

Re: [Rails] multiple file upload to amazon s3 using jquery file upload rails app

2012-11-28 Thread Jordon Bedwell
On Tue, Nov 27, 2012 at 4:02 PM, Sahil Shah sahil.shah...@gmail.com wrote: When I try to upload single/multiple file I get alert box saying failed to upload and in console it says Failed to load resource: the server responded with a status of 403 (Forbidden) and XMLHttpRequest cannot

Re: [Rails] Re: why we are Using self.method_name?

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 6:46 AM, thil thil.1...@gmail.com wrote: Self.methods is static methods using the class name itself you can call the methods and is not available to the instance of the class. There is no such thing as static methods in Ruby. self.method_name (or sometimes

Re: chromium memory conumption on x86_64

2012-11-28 Thread Jordon Bedwell
On Wed, Nov 28, 2012 at 4:13 PM, Enrico Weigelt enrico.weig...@vnc.biz wrote: Honestly, I dont know anymore, as it's now several month ago (I guess it was somewhere in spring / early summer). But: I've noticed that problem almost immediately after switching to Ubuntu, and I've got the feeling

Re: [Rails] Loding only active_record for rspec model tests

2012-11-26 Thread Jordon Bedwell
On Mon, Nov 26, 2012 at 7:58 AM, venkata reddy venkatareddy...@gmail.com wrote: Anybody have a better idea? Don't run rspec command? Use Guard and keep on developing letting it tell you when tests fail and pass rather than caring about the 1 second, it's inefficient to stop and run rspec when

Re: [Rails] Hosting with email accounts?

2012-11-26 Thread Jordon Bedwell
On Sun, Nov 25, 2012 at 10:56 PM, Norbert Melzer timmel...@gmail.com wrote: don't use heroku, but at least in Germany there are virtual root servers with full DNS control and integrated mail servers for less than 15 USD (10 Eur) a month. Because you can't get the same thing in the US, UK,

Re: [Rails] Hosting with email accounts?

2012-11-26 Thread Jordon Bedwell
On Mon, Nov 26, 2012 at 10:07 AM, Norbert Melzer timmel...@gmail.com wrote: Sorry, wasn't meant to be imperative, there is missing a simple I, I can't now about the prices in the whole world but in Germany. So I wrote that this applies to Germany. I still hoped that there are similar offers all

Re: New rootkit targetting Debian squeeze (amd64 only)

2012-11-23 Thread Jordon Bedwell
On Fri, Nov 23, 2012 at 12:31 AM, Mike Mestnik cheako+debian-secur...@mikemestnik.net wrote: On 11/22/12 11:33, Laurentiu Pancescu wrote: More likely: a vulnerability in their web service (some form of execution of attacker-provided code), combined with a local privilege elevation exploit (the

Re: [Rails] Issues with rails resourceful routes

2012-11-22 Thread Jordon Bedwell
On Thu, Nov 22, 2012 at 6:58 AM, Dan Brooking dmbrook...@gmail.com wrote: __SNIP__ The problem I face is it works for part of the URL. So if I do: http://localhost:3000/pages/http%3A%2F%2F or http://localhost:3000/pages/http%3A%2F%2Fguides or

Re: [Rails] Re: Opinion on a particular use of Initializers

2012-11-21 Thread Jordon Bedwell
On Wed, Nov 21, 2012 at 8:57 PM, Alex Braha Stoll alexbrahast...@gmail.com wrote: Thanks for the answer, Fred. When you say lazily loading the data I need you mean waiting for a first request that uses the data, right? If so, how can I do that in a way that the data will persist for the next

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Jordon Bedwell
On Tue, Nov 20, 2012 at 5:08 AM, Erwin yves_duf...@mac.com wrote: I have a fixtures directory structure fixtures en alpha beta delta es alpha beta delta __SNIP__ is there a way to remove all folders with name 'alpha' in ALL locales folder, and get a

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Jordon Bedwell
On Tue, Nov 20, 2012 at 5:18 AM, Jordon Bedwell envyge...@gmail.com wrote: On Tue, Nov 20, 2012 at 5:08 AM, Erwin yves_duf...@mac.com wrote: I have a fixtures directory structure fixtures en alpha beta delta es alpha beta delta __SNIP__ is there a way

<    1   2   3   4   5   6   7   8   >