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



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

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



73
74
75
# File 'lib/bootstrap-form/form_helper.rb', line 73

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

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



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

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



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

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



94
95
96
# File 'lib/bootstrap-form/form_helper.rb', line 94

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

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



69
70
71
# File 'lib/bootstrap-form/form_helper.rb', line 69

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