Sha256: d3c896570a1126d5fdcd149de16e6e15ddb54869956dea32cced7fabe60f63ba

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

module StaticMatic
  module Helpers
    module FormHelper
      self.extend self

      # Generates a form text field
      #
      def text_field(name, value, options = {})
        options.merge!(:type => "text", :name => name, :value => value)
        tag(:input, options)
      end
        
        
      # Generate a form textarea
      #
      def text_area(name, value, options = {})
        options.merge!(:name => name)
        tag(:textarea, options) { value }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticmatic3-2.1.10 lib/staticmatic/helpers/form_helper.rb
staticmatic3-2.1.9 lib/staticmatic/helpers/form_helper.rb