Form_for v/s field_for


#1

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

and the logic behind field_for

thanks anyway


#2

On 25/05/2009, at 4:44 PM, Virendra N. 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

and the logic behind field_for

thanks anyway

They’re different classes of thing.

The relationship between forms and fields on web pages is very similar
to that of tables and fields in databases.

Julian.


Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
Latest: How to use Unix basics at http://sensei.zenunit.com/


#3

On May 25, 7:44 am, Virendra N. removed_email_address@domain.invalid
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 tags. If you thing of
form_for being

“<form #{various form level options}” + fields_for(…) + then
you’re not far off.

Fred