in the view, it will display all the output and the number of pages,
once you click on next page, it will display the same thing as the
first page and so on.
in the view, it will display all the output and the number of pages,
once you click on next page, it will display the same thing as the
first page and so on.
You need to tell it what page to display (ie, pass in :page => 5 to
show the fifth page)
copy the below statement in paginate_collection method
..................................................................
@page = params[:country_pages]
......................................................................
copy the below code in your view and run it. it will definitely work..
............................................................................................................................
<%= "Page: " + pagination_links(@country_pages, :params => { :action
=> params["action"] || "index" }) + "<hr />" if @pages.page_count >
1%>