module StaticMatic::Helpers::FormHelper

Public Instance Methods

text_area(name, value, options = {}) click to toggle source

Generate a form textarea

# File lib/staticmatic/helpers/form_helper.rb, line 17
def text_area(name, value, options = {})
  options.merge!(:name => name)
  tag(:textarea, options) { value }
end
text_field(name, value, options = {}) click to toggle source

Generates a form text field

# File lib/staticmatic/helpers/form_helper.rb, line 9
def text_field(name, value, options = {})
  options.merge!(:type => "text", :name => name, :value => value)
  tag(:input, options)
end