Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/bootstrap-form/form_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

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, options = {}, html_options = {})
  @template.bootstrap_collection_select(@object_name, method, collection, value_method, text_method, objectify_options(options), html_options)
end

#bootstrap_email_field(method, options = {}) ⇒ Object



82
83
84
# File 'lib/bootstrap-form/form_helper.rb', line 82

def bootstrap_email_field(method, options={})
  @template.bootstrap_email_field(@object_name, method, objectify_options(options))
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, options={})
  self.multipart = true
  @template.bootstrap_file_field(@object_name, method, objectify_options(options))
end

#bootstrap_password_field(method, options = {}) ⇒ Object



86
87
88
# File 'lib/bootstrap-form/form_helper.rb', line 86

def bootstrap_password_field(method, options={})
  @template.bootstrap_password_field(@object_name, method, objectify_options(options))
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, options={}, html_options={})
  @template.bootstrap_select(@object_name, method, choices, objectify_options(options), html_options)
end

#bootstrap_text_area(method, options = {}) ⇒ Object



103
104
105
# File 'lib/bootstrap-form/form_helper.rb', line 103

def bootstrap_text_area(method, options={})
  @template.bootstrap_text_area(@object_name, method, objectify_options(options))
end

#bootstrap_text_field(method, options = {}) ⇒ Object



78
79
80
# File 'lib/bootstrap-form/form_helper.rb', line 78

def bootstrap_text_field(method, options={})
  @template.bootstrap_text_field(@object_name, method, objectify_options(options))
end