<%= pagination_links contents, :param_name => 'npage', :page_links => true %>