search for: object_pag

Displaying 2 results from an estimated 2 matches for "object_pag".

Did you mean: object_pass
2006 Jun 07
2
Hash flattening on paginator link_to
...d1f8f2ff3", "7"=>"6f4922f45568161a8cdf4ad2299f6d23"} Here''s the code in my view for my pagination link: <%= link_to(''next'', {:params => params.merge(''answer'' => @answer, ''page'' => object_pages.current.previous,)}) + '' '' if object_pages.current.previous %> See how the link_to doesn''t maintain the actual hash: <a href="/student_portal/evaluate_exam/7?commit=Submit+Test&amp; answer=69bf31c7ff062936a96d3c8bd1f8f2ff376f4922f45568161a8cdf4ad2299f6...
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