On Friday, January 7, 2011 6:39:17 AM UTC-5, Colin Law wrote:
>
> I have always assumed that when using form_for in erb one should use
> <%= form_for ..... %>
> However having done some tests it appears that it works identically
> without the '=' so
> <% form_for ... %> is ok.
>
> Can anyone explain this?  I thought that without the '=' the code
> would be run but the result would not be injected into the html.  I
> appear to be wrong however.
>

This is mentioned specifically in the Rails 3 release notes:

http://edgeguides.rubyonrails.org/3_0_release_notes.html#action-view 

> Colin
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to