141
I am following the Ruby on Rails tutorial and have come across a problem while trying to pass variables to partials.
My _user partial is as follows
<li>
<%= gravatar_for user, size: 52 %>
<%= link_to user.name, user %>
</li>
I would like to pass in a number for the size value. I am trying as follows without any luck.
<%= render @users, :locals => {:size => 30} %>