Skip to content

Instantly share code, notes, and snippets.

@pjammer

pjammer/gist:181802

Created Sep 6, 2009
Embed
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 %>
<tr>
<td><%= link_to affiliate.user.email, admin_affiliate_path(affiliate) %></td>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.