Forum: Ruby on Rails problem with pagination

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
500e92cfb666d6757c317a5df7c7e28d?d=identicon&s=25 nephish (Guest)
on 2007-01-01 04:06
(Received via mailing list)
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 =
                            :conditions => ["site_id = ?",],
                            :per_page => 10)

# in the show_history.rhtml
<%= pagination_links(@history_pages) %>

any ideas ?

This topic is locked and can not be replied to.