hello again,
I have in a controller this:
@invoice_pages, @invoices = paginate (:invoices,
                                            :conditions =>
[''enterprise_id = ? AND tipus = ?'',
session[:user_enterprise_id] ,
params[:kind]],
                                            :order         => ''data
ASC'',
                                            :per_page => 10 )
in the _list.rhtml, I use this:
<%= link_to ''Previous page'', { :page =>
@invoice_pages.current.previous
} if @invoice_pages.current.previous %>
<%= link_to ''Next page'', { :page =>
@invoice_pages.current.next } if
@invoice_pages.current.next %>
but, the resulted links doesn''t have the extra parameter that I need:
params[:kind]]
this parameter cames from a first init link, and I want to propagate for
all the links of the resulted pagination. as I''m only receiving this
parameter once, why the pagination class can''t remember or store it in
some place, like the :conditions ?
thanks !
regards,
raimon
-- 
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---