Monday, August 22, 2011

[Rails] Re: how to put the form in index action

I'm not sure what you mean by message, reply and so on. Seems something specific of your app. When I have to display the form on the index action I put the form in a separate partial, which is a good idea anyway and the default since Rails 3.1 or 3.0, like _form, and I make sure both index and new initialize the object for the form.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/TYlzx1jSc1YJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate