I''m using Rails 0.11, and am having a minor difficulty with the
paginator:
I have the link
<%= pagination_links(@thankyou_pages, :window_size => 10, :params =>
@feed_params) %>
on a page supposed to show a subset of my thankyous. The query
parameters are in @feed_params (for example, city=>New York), and my
controllers work just fine with "next" and "previous" links
like the
following:
<%= link_to("«", { :page =>
@thankyou_pages.current.previous
}.merge(@feed_params)) if @thankyou_pages.current.previous %>
However, when I use the pagination_links method, the :params don''t seem
to be sent to the internal link_to method like they are when I call
link_to explicitly.
How can I make this work?
Dana Spiegel
sociableDESIGN :: www.sociableDESIGN.com
123 Bank Street, Suite 510, New York, NY 10014
m +1 917 402 0422 :: f +1 760 454 3690 ::
e dana-vMX9DRPRwNS1D0f+uJRytdBPR1lH4CV8@public.gmane.org
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails