hello there all,
i am having a problem with pagination.
the first page looks right, but when i click a link, it redisplays the
same items, and the links at the bottom dissapear.
here is the code
def show_history
@site = Site.find(params[:id])
@history_pages, @site.status_changes paginate(:status_changes,
:conditions => ["site_id = ?",
@site.id],
:per_page => 10)
end
# in the show_history.rhtml
<%= pagination_links(@history_pages) %>
any ideas ?
thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---