> 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
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
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
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
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
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
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
7 matches
Mail list logo