Je travaille à travers un tutoriel avec le code suivant:Rails 2 - partiels: que signifie @comment = Comment.new?
<h3>New Comment</h3>
<%= render :partial => @comment = Comment.new,
:locals => { :button_name => "Create" } %>
Je crois que 'rendre: partiel => @comment' fonctionne comme « render: partial => "commentaire",: objet => @comment '
D'où vient' = Comment.new '? Est-ce un raccourci pour: objet?
Alan
Merci, je ne pouvais trouver aucune référence à ce format via Google – Alan