method
form_tag
form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
public
Starts a form tag that points the action to an url configured with url_for_options just like ActionController::Base#url_for. The method for the form defaults to POST.
Options:
- :multipart - If set to true, the enctype is set to "multipart/form-data".
- :method - The method to use when submitting the form, usually either "get" or "post".
Register or
log in
to add new notes.
sethladd -
October 2, 2009
2 thanks
form_tag with named route and html class
<% form_tag position_user_card_path(@user, card), :method => :put, :class => ‘position-form’ do %>

