Module ActionView::Helpers::FormTagHelper
In: lib/action_view/helpers/form_tag_helper.rb

Provides a number of methods for creating form tags that doesn’t rely on conventions with an object assigned to the template like FormHelper does. With the FormTagHelper, you provide the names and values yourself.

NOTE: The html options disabled, readonly, and multiple can all be treated as booleans. So specifying disabled => :true will give disabled="disabled".

Methods

Public Instance methods

Outputs "</form>"

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".
start_form_tag(url_for_options = {}, options = {}, *parameters_for_url)

Alias for form_tag

[Validate]