I''ve ended up with monkeypatching:
https://gist.github.com/889160
module Kaminari
module Helpers
class Tag
def page_url_for(page)
@template.url_for @template.params.merge(@param_name => (page
< 1 ? nil : page))
end
end
end
end
On Feb 25, 1:54 pm, "T. N. T."
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Kaminari omits the :page-param for the first page. Does anybody know a
> way to get this ''fixed''?
>
> I''m now doing it this way (in _first_page_link.erb):
>
> <%= link_to page, url + ''?page=1'', :remote =>
remote %>
>
> but this is not really satisfying.
>
> Thanks, T.
>
> --
> Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.