search for: prevlink

Displaying 1 result from an estimated 1 matches for "prevlink".

Did you mean: prelink
2006 Jun 02
3
Custom Pagination Links
...hen it still display a "1" to represent the current page. How can I suppress that? Thanks! <div class="pager"> <%= link_to(''&lt; Prev'', {:params => params.merge(''page'' => @my_pages.current.previous)}, {:class => "prevlink"}) if @my_pages.current.previous %> <% for page in @my_pages -%> <%= link_to_unless(params[:page].to_i == page.number, page.number, {:params => params.merge(''page'' => page)}, {:class => "pagelink"}) {|link_name|...