Module: StaticMatic::Helpers::FormHelper
- Extended by:
- FormHelper
- Included in:
- StaticMatic::Helpers, FormHelper
- Defined in:
- lib/staticmatic/helpers/form_helper.rb
Instance Method Summary collapse
-
#text_area(name, value, options = {}) ⇒ Object
Generate a form textarea.
-
#text_field(name, value, options = {}) ⇒ Object
Generates a form text field.
Instance Method Details
#text_area(name, value, options = {}) ⇒ Object
Generate a form textarea
17 18 19 20 |
# File 'lib/staticmatic/helpers/form_helper.rb', line 17 def text_area(name, value, = {}) .merge!(:name => name) tag(:textarea, ) { value } end |
#text_field(name, value, options = {}) ⇒ Object
Generates a form text field
9 10 11 12 |
# File 'lib/staticmatic/helpers/form_helper.rb', line 9 def text_field(name, value, = {}) .merge!(:type => "text", :name => name, :value => value) tag(:input, ) end |