> 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 problem :)

Thanks for all your help you have saved me many of hours pondering.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to