[Rails] Re: HELP Installing older versions of rails on OSX?

2014-07-15 Thread Jeff Lockyer
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ? Because thus far, attempting to get these two in line is turning out to be a real headache... :( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] HELP Installing older versions of rails on OSX?

2014-07-15 Thread Jeff Lockyer
I am attempting to recreate an old install of a machine that failed recently. I originally setup the machine using the guide found on Hivelogic (http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx). Which would have reinstated all of my old environments (Ruby 1.8.6, Rubygems 0.9.2 Rails 2.1.

[Rails] Re: Re: find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
lin Law wrote in post #1083465: > On 7 November 2012 22:06, Jeff Lockyer wrote: >> NoMethodError (undefined method `province' for nil:NilClass): >> /path/file.rb:302:in `set_no' >> >> So I look on that line, in the set_no definition, which is where I was &

[Rails] Re: find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
d_by_sql call. Does this make any more sense now ? I have been through many attempts to resolve this, and can work with parameters, etc but with DB returns it seems I am missing something. Colin Law wrote in post #1083450: > On 7 November 2012 20:07, Jeff Lockyer wrote: >> I am new t

[Rails] find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
I am new to the language and trying to add a couple of simple tests on user input, followed by a DB query, then using the returned values (where the problem lies) I first run a find_by_sql similar to this @my_names = modelname.find_by_sql I then check to see if NO returns via if @my_names.size