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 -- Posted via http://www.ruby-forum.com/.
On 25/05/2009, at 4:44 PM, Virendra Negi 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 anywayThey''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/> -- > Posted via http://www.ruby-forum.com/. > > >
On May 25, 7:44 am, Virendra Negi <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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_forthey 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/.