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
81 82 83 |
# File 'lib/bootstrap-form/form_helper.rb', line 81 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
73 74 75 |
# File 'lib/bootstrap-form/form_helper.rb', line 73 def bootstrap_email_field(method, ={}) @template.bootstrap_email_field(@object_name, method, ()) end |
#bootstrap_file_field(method, options = {}) ⇒ Object
89 90 91 92 |
# File 'lib/bootstrap-form/form_helper.rb', line 89 def bootstrap_file_field(method, ={}) self.multipart = true @template.bootstrap_file_field(@object_name, method, ()) end |
#bootstrap_password_field(method, options = {}) ⇒ Object
77 78 79 |
# File 'lib/bootstrap-form/form_helper.rb', line 77 def bootstrap_password_field(method, ={}) @template.bootstrap_password_field(@object_name, method, ()) end |
#bootstrap_select(method, choices, options = {}, html_options = {}) ⇒ Object
85 86 87 |
# File 'lib/bootstrap-form/form_helper.rb', line 85 def bootstrap_select(method, choices, ={}, ={}) @template.bootstrap_select(@object_name, method, choices, (), ) end |
#bootstrap_text_area(method, options = {}) ⇒ Object
94 95 96 |
# File 'lib/bootstrap-form/form_helper.rb', line 94 def bootstrap_text_area(method, ={}) @template.bootstrap_text_area(@object_name, method, ()) end |
#bootstrap_text_field(method, options = {}) ⇒ Object
69 70 71 |
# File 'lib/bootstrap-form/form_helper.rb', line 69 def bootstrap_text_field(method, ={}) @template.bootstrap_text_field(@object_name, method, ()) end |