I didn’t really know about this shortcut until I came across this ticket
In edge rails, instead of :
<%= render :partial => 'task', :collection => @tasks %> |
You can do :
<%= render :partial => @tasks %> |
I didn’t really know about this shortcut until I came across this ticket
In edge rails, instead of :
<%= render :partial => 'task', :collection => @tasks %> |
You can do :
<%= render :partial => @tasks %> |
Very cool. However, I think the syntax could have been slightly better <%= render :collection => @tasks %>
Agree. I’ll try to submit a patch for that if/once my render cleanup gets accepted :-)