Ruby on Rails Wednesday, January 5, 2011

On 5 January 2011 20:41, Daniel Oton <lists@ruby-forum.com> wrote:
>> As I asked before, please include the appropriate bits of the previous
>> post in your message so that it makes sense.  As it stands this
>> message will now make no sense to someone finding the thread in the
>> future.
>
> Ok, I didn't know what you were meaning... :-)
>
>> Did you find that <%= form_for is now working for you?
>
> No, I have no idea.
>
> All my forms in edit and new views are <% form_for ...
>
> Should be <%= form_form inside <% form_for ?

I don't understand what you mean by form_for *inside* form_for. Are
you using nested forms?

However I now find myself very confused. I have just done some
experiments and it seems that the = is not necessary. I am
particularly confused as in the last few weeks there have been at
least two occasions on which posters here have had problems which were
fixed by using <%=. But as I said I have just tried myself and <%
form_for seems to work perfectly ok. I do not understand this as I
thought erb only included the result of the expression in the html if
the = was present. Can someone with more knowledge of this comment
please?

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment