Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/bootstrap-form/form_helper.rb
Overview
:nodoc:
Instance Method Summary collapse
- #bootstrap_collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
- #bootstrap_email_field(method, options = {}) ⇒ Object
- #bootstrap_file_field(method, options = {}) ⇒ Object
- #bootstrap_password_field(method, options = {}) ⇒ Object
- #bootstrap_select(method, choices, options = {}, html_options = {}) ⇒ Object
- #bootstrap_text_area(method, options = {}) ⇒ Object
- #bootstrap_text_field(method, options = {}) ⇒ Object
Instance Method Details
#bootstrap_collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
90 91 92 |
# File 'lib/bootstrap-form/form_helper.rb', line 90 def bootstrap_collection_select(method, collection, value_method, text_method, = {}, = {}) @template.bootstrap_collection_select(@object_name, method, collection, value_method, text_method, (), ) end |
#bootstrap_email_field(method, options = {}) ⇒ Object
82 83 84 |
# File 'lib/bootstrap-form/form_helper.rb', line 82 def bootstrap_email_field(method, ={}) @template.bootstrap_email_field(@object_name, method, ()) end |
#bootstrap_file_field(method, options = {}) ⇒ Object
98 99 100 101 |
# File 'lib/bootstrap-form/form_helper.rb', line 98 def bootstrap_file_field(method, ={}) self.multipart = true @template.bootstrap_file_field(@object_name, method, ()) end |
#bootstrap_password_field(method, options = {}) ⇒ Object
86 87 88 |
# File 'lib/bootstrap-form/form_helper.rb', line 86 def bootstrap_password_field(method, ={}) @template.bootstrap_password_field(@object_name, method, ()) end |
#bootstrap_select(method, choices, options = {}, html_options = {}) ⇒ Object
94 95 96 |
# File 'lib/bootstrap-form/form_helper.rb', line 94 def bootstrap_select(method, choices, ={}, ={}) @template.bootstrap_select(@object_name, method, choices, (), ) end |
#bootstrap_text_area(method, options = {}) ⇒ Object
103 104 105 |
# File 'lib/bootstrap-form/form_helper.rb', line 103 def bootstrap_text_area(method, ={}) @template.bootstrap_text_area(@object_name, method, ()) end |
#bootstrap_text_field(method, options = {}) ⇒ Object
78 79 80 |
# File 'lib/bootstrap-form/form_helper.rb', line 78 def bootstrap_text_field(method, ={}) @template.bootstrap_text_field(@object_name, method, ()) end |