W3cubDocs

/Padrino

Class: Padrino::Helpers::FormBuilder::AbstractFormBuilder

Inherits:
Object
  • Object

Overview

Base class for Padrino Form Builder

Direct Known Subclasses

StandardFormBuilder

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize(template, object, options = {}) ⇒ AbstractFormBuilder

Returns a new instance of AbstractFormBuilder

Instance Attribute Details

#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

Instance Method Details

#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. f.fields_for :addresses f.fields_for :addresses, address f.fields_for :addresses, @addresses f.fields_for :addresses, address, index: i

#file_field(field, options = {}) ⇒ Object

#hidden_field(field, options = {}) ⇒ Object

#image_submit(source, options = {}) ⇒ Object

#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 known as: 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