On May 25, 7:44 am, Virendra Negi <[email protected]>
wrote:
> Hello
> I am trying to use complex-form in my application for which i have to
> use field_for i want to know exactly the main difference of form_for and
> field_for

they are both to do with binding an object to an instance of form
builder, but form_for also outputs the <form> tags. If you thing of
form_for being

"<form #{various form level options}" + fields_for(...) + </form> then
you're not far off.

Fred
>
> and the logic behind field_for
>
> thanks anyway
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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