So for example, if I have a partial that works with @users as a collection, i.e.
<%= render :partial => 'dashboard/dashboard_pane', :collection => @users %>
where
@users = User.all
But DOESNT seem to work with a single instance
<%= render :partial => 'dashboard/dashboard_pane', :collection => @user %>
where
@user = User.first
The questions is, why?
To use this partial with a single object, you should’t be calling it with
:collection. Try this instead: