Skip to content

Instantly share code, notes, and snippets.

@Tigraine
Created July 11, 2012 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tigraine/3090095 to your computer and use it in GitHub Desktop.
Save Tigraine/3090095 to your computer and use it in GitHub Desktop.
pagination locals
<div>
<%= render :partial => 'grid_list', :locals => { :list => @hot_videos, :dont_paginate => true } %>
</div>
<div>
<%= render :partial => 'grid_list', :locals => { :list => @videos } %>
</div>
<% dont_paginate ||= false %>
<% if defined?(dont_paginate) %>
<%= paginate list %>
<% end %>
render :partial => ‘list’, :locals => { :posts => @posts }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment