I am working on a tutorial with the following code:
<h3>New Comment</h3>
<%= render :partial => @comment = Comment.new,
:locals => { :button_name => "Create" } %>
I believe that 'render: partial => @comment' works like 'render: partial => "comment" ,: object => @comment'
Where is "= Comment.new" located? This is short for: object?
Alan
source
share