So far I have tallied 3 different ways of creating a form start_form_tag form_for form_tag Is one of the above the latest and greatest and is the preferred method or is there a certain use for each of the above? -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 2, 4:16 pm, Chris Olsen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> So far I have tallied 3 different ways of creating a form > > start_form_tag > form_for > form_tag > > Is one of the above the latest and greatest and is the preferred method > or is there a certain use for each of the above? > > -- > Posted viahttp://www.ruby-forum.com/.The prefered method is "form_tag", eg: <% form_tag :action => "create" do %> My pretty form! <% end %> See http://www.loudthinking.com/arc/000601.html. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the input. From the article it does mention that the start_form_tag, end_form_tag is deprecated, but no real comparison between the form_tag and form_for. I am assuming they are both acceptable... On Feb 1, 10:38 pm, "askegg" <andrew.sk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 2, 4:16 pm,ChrisOlsen<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > So far I have tallied 3 different ways of creating a form > > > start_form_tag > > form_for > > form_tag > > > Is one of the above the latest and greatest and is the preferred method > > or is there a certain use for each of the above? > > > -- > > Posted viahttp://www.ruby-forum.com/. > > The prefered method is "form_tag", eg: > > <% form_tag :action => "create" do %> > My pretty form! > <% end %> > > Seehttp://www.loudthinking.com/arc/000601.html.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---