Base class for Padrino Form Builder
#attributes_name ⇒ Object readonly Returns the value of attribute attributes_name. #is_nested ⇒ Object readonly Returns the value of attribute is_nested. #model_name ⇒ Object readonly Returns the value of attribute model_name. #multipart ⇒ Object Returns the value of attribute multipart. #namespace ⇒ Object readonly Returns the value of attribute namespace. #nested_index ⇒ Object readonly Returns the value of attribute nested_index. #object ⇒ Object Returns the value of attribute object. #parent_form ⇒ Object readonly Returns the value of attribute parent_form. #template ⇒ Object Returns the value of attribute template. #check_box(field, options = {}) ⇒ Object #check_box_group(field, options = {}) ⇒ Object #color_field(field, options = {}) ⇒ Object #csrf_token_field ⇒ Object #date_field(field, options = {}) ⇒ Object #datetime_field(field, options = {}) ⇒ Object #datetime_local_field(field, options = {}) ⇒ Object #email_field(field, options = {}) ⇒ Object #error_message_on(field, options = {}) ⇒ Object #error_messages(*params) ⇒ Object #fields_for(child_association, collection = nil, options = {}, &block) ⇒ Object Supports nested fields for a child model within a form. #file_field(field, options = {}) ⇒ Object #hidden_field(field, options = {}) ⇒ Object #image_submit(source, options = {}) ⇒ Object #initialize(template, object, options = {}) ⇒ AbstractFormBuilder constructor A new instance of AbstractFormBuilder. #label(field, options = {}, &block) ⇒ Object #month_field(field, options = {}) ⇒ Object #number_field(field, options = {}) ⇒ Object #password_field(field, options = {}) ⇒ Object #radio_button(field, options = {}) ⇒ Object #radio_button_group(field, options = {}) ⇒ Object #search_field(field, options = {}) ⇒ Object #select(field, options = {}) ⇒ Object #submit(*args) ⇒ Object #telephone_field(field, options = {}) ⇒ Object (also: #phone_field) #text_area(field, options = {}) ⇒ Object #text_field(field, options = {}) ⇒ Object #time_field(field, options = {}) ⇒ Object #url_field(field, options = {}) ⇒ Object #week_field(field, options = {}) ⇒ Object Returns a new instance of AbstractFormBuilder
Returns the value of attribute attributes_name
Returns the value of attribute is_nested
Returns the value of attribute model_name
Returns the value of attribute multipart
Returns the value of attribute namespace
Returns the value of attribute nested_index
Returns the value of attribute object
Returns the value of attribute parent_form
Returns the value of attribute template
Supports nested fields for a child model within a form. f.fields_for :addresses f.fields_for :addresses, address f.fields_for :addresses, @addresses f.fields_for :addresses, address, index: i
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Helpers/FormBuilder/AbstractFormBuilder