multipart=

multipart=(multipart) Instance Public methods

label

label(method, text = nil, options = {}, &block) Instance Public methods Returns a label tag tailored for labelling an input field for a specified attribute (identified by method) on an object assigned to the template (identified by object). The text of label will default to the attribute name unless a translation is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly. Additional options on the label tag can b

hidden_field

hidden_field(method, options = {}) Instance Public methods Returns a hidden input tag tailored for accessing a specified attribute (identified by method) on an object assigned to the template (identified by object). Additional options on the input tag can be passed as a hash with options. These options will be tagged onto the HTML as an HTML element attribute as in the example shown. Examples hidden_field(:signup, :pass_confirm) # => <input type="hidden" id="signup_pass_confi

grouped_collection_select

grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#grouped_collection_select for form builders: <%= form_for @city do |f| %> <%= f.grouped_collection_select :country_id, @continents, :countries, :name, :id, :name %> <%= f.submit %> <% end %> Please refer to the documentation of the base

file_field

file_field(method, options = {}) Instance Public methods Returns a file upload input tag tailored for accessing a specified attribute (identified by method) on an object assigned to the template (identified by object). Additional options on the input tag can be passed as a hash with options. These options will be tagged onto the HTML as an HTML element attribute as in the example shown. Using this method inside a form_for block will set the enclosing form's encoding to multipart/fo

fields_for

fields_for(record_name, record_object = nil, fields_options = {}, &block) Instance Public methods Creates a scope around a specific model object like form_for, but doesn't create the form tags themselves. This makes #fields_for suitable for specifying additional model objects in the same form. Although the usage and purpose of field_for is similar to form_for's, its method signature is slightly different. Like form_for, it yields a FormBuilder object associated with a particula

emitted_hidden_id?

emitted_hidden_id?() Instance Public methods

datetime_select

datetime_select(method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::DateHelper#datetime_select for form builders: <%= form_for @person do |f| %> <%= f.datetime_select :last_request_at %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.

date_select

date_select(method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::DateHelper#date_select for form builders: <%= form_for @person do |f| %> <%= f.date_select :birth_date %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.

collection_select

collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#collection_select for form builders: <%= form_for @post do |f| %> <%= f.collection_select :person_id, Author.all, :id, :name_with_initial, prompt: true %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.