search for: hotel_pages

Displaying 1 result from an estimated 1 matches for "hotel_pages".

2006 Jul 25
6
form and pagination question
Hello, How do I get params from a form to use with a paginator? debug(params) shows this city: !map:HashWithIndifferentAccess id: "1" but in my controller, when I try to use @hotel_pages = Paginator.new self, Hotel.count(:conditions => "hotels.city_id = params[:city][:id]"), 3, @params[''page''] it doesn''t work. I suppose it''s a simple syntax error but have no idea to fix it. Thanks for your help! -- Posted via http://www.ruby-foru...