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



49
50
51
# File 'lib/bootstrap-form/form_helper.rb', line 49

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_file_field(method, options = {}) ⇒ Object



53
54
55
56
# File 'lib/bootstrap-form/form_helper.rb', line 53

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



45
46
47
# File 'lib/bootstrap-form/form_helper.rb', line 45

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

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



58
59
60
# File 'lib/bootstrap-form/form_helper.rb', line 58

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

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



41
42
43
# File 'lib/bootstrap-form/form_helper.rb', line 41

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