<ul data-role="listview" class="list"> <% @page_contexts.each do |page_context| %> <li> <%= link_to mobile_page_content_path(:app => params[:app], :id => page_context) do %> <h3><%= page_context.page.title %></h3> <% end %> </li> <% end %> </ul> <%= paginate @page_contexts, :param_name => :page_main, :window => 2 %>