Class: Shoehorn::Components::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/shoehorn/components/form_builder.rb

Instance Method Summary collapse

Instance Method Details

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



8
9
10
11
# File 'lib/shoehorn/components/form_builder.rb', line 8

def password_field(method, options={})
  input_html = super(method, options)
  Form::InputField.new(object_name, method, input_html, options).to_s
end

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



3
4
5
6
# File 'lib/shoehorn/components/form_builder.rb', line 3

def text_field(method, options={})
  input_html = super(method, options)
  Form::InputField.new(object_name, method, input_html, options).to_s
end