[Rails] Re: Re: Undefined Method

2012-02-23 Thread Roger Patrick
> def index > games_relation = case params[:console].present? > when true then Game.where(:console => params[:console]) > else Game > end > @games = games_relation.paginate(:per_page => 4, :page => > params[:page]).search(params[:search]) > end Thank you very much, that has solved my pro

[Rails] Re: Re: undefined method `model_name' for NilClass:Class in a form_for

2011-05-27 Thread Louis Wrobel
Michael Pavling wrote in post #1001516: > Right... so the form_for stuff won't work then, unless you add all the > methods it needs that a "normal" model would inherit from AR::Base (or > probably won't work at all - use a form_tag instead...) Thanks you, i tried with form_tag and it works. -- P

Re: [Rails] Re: Re: undefined method + method(argument)

2010-10-17 Thread Colin Law
On 17 October 2010 06:17, Evanoshki Brataslavainskinski wrote: > Luke Cowell wrote in post #954878: >> Did you try Michael's suggestion of adding this to your controller? >> >> helper_method :find_first_in_group >> >> This probably isn't the best approach, but you could change line 5 to >> somethi

[Rails] Re: Re: undefined method + method(argument)

2010-10-16 Thread Evanoshki Brataslavainskinski
Luke Cowell wrote in post #954878: > Did you try Michael's suggestion of adding this to your controller? > > helper_method :find_first_in_group > > This probably isn't the best approach, but you could change line 5 to > something like this: > <% @image_url = Camera.find_first_group_image(camera.ca

[Rails] Re: Re: undefined method `path' for Gem:Module (NoMethodError)

2010-09-22 Thread Dani Dani
Hi dd, As I have mentioned above, do what the following link instructs to do: http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/ it worked for me. if the above link does not help, try the following link: http://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-inst

Re: [Rails] Re: Re: undefined method `path' for Gem:Module (NoMethodError)

2010-09-21 Thread radhames brito
is not that rails is hard to install , is that rails moves fast, it does not have the constrains we are used to with other frameworks, rails is open source, gems are free and is easy to learn , so rails changes fast, if you read a book or a tutorial today it may not be useful in a month. Other tech

[Rails] Re: Re: undefined method `path' for Gem:Module (NoMethodError)

2010-09-08 Thread Dani Dani
Thank you all. UF, I have managed installing Ruby 1.9.2 & Rails 3 on windows. The following links has helped: http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/ and http://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-install-on.html with the combination of