]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/index.html.erb
Don't interpolate in pagination partial
[rails.git] / app / views / diary_entries / index.html.erb
index e4cc8fc8e6ffd7768e51c260ef33a19ba3883a6f..f6e2c37c5f5ee9f9d408809a0f75022b16555bee 100644 (file)
 
   <%= render @entries %>
 
 
   <%= render @entries %>
 
-  <%= render "pagination", :name => "entries", :scope => "diary_entries.index" %>
+  <%= render "pagination", :newer_key => "diary_entries.index.newer_entries",
+                           :older_key => "diary_entries.index.older_entries",
+                           :newer_id => @newer_entries_id,
+                           :older_id => @older_entries_id %>
 <% end %>
 
 <% unless params[:friends] or params[:nearby] -%>
 <% end %>
 
 <% unless params[:friends] or params[:nearby] -%>