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?
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?
On Feb 2, 4:16 pm, Chris O. [email protected]
wrote:
Posted viahttp://www.ruby-forum.com/.
The prefered method is “form_tag”, eg:
<% form_tag :action => “create” do %>
My pretty form!
<% end %>
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…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs