Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
where the partial is called:
<ul class="user_avatars">
<%= render :partial => 'users/user_avatar', collection: @users %>
<%= render @users %>
<%= image_tag @users.avatar.url(:thumb) %>
<%= image_tag user.avatar.url(:thumb) %>
<%= link_to user.nice_name, user %>
Also, I have this in the pages controller, which controls the home page, where these are called:
def home
@title = "Home"
@users = User.order('created_at DESC').limit(9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment