Skip to content

Instantly share code, notes, and snippets.



Created Sep 6, 2009
What would you like to do?
#controller method
@affiliates = @shop.affiliates.paginate(:page => params[:page], :order => "id desc", :include => :user)
#view trouble spot
<% for affiliate in @affiliates %>
<td><%= link_to, admin_affiliate_path(affiliate) %></td>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment