Sha256: 1728d07c4f14e9395a1c331391e7e9f4486205e2ef87273952b942b5138c4fdb

Contents?: true

Size: 500 Bytes

Versions: 16

Compression:

Stored size: 500 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

16 entries across 16 versions & 2 rubygems

Version Path
staticmatic2-2.1.8 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.7 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.6 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.5 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.4 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.3 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.2 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.1 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.1.0 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.0.2 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.0.1 lib/staticmatic/helpers/form_helper.rb
staticmatic2-2.0.0 lib/staticmatic/helpers/form_helper.rb
staticmatic-0.11.1 lib/staticmatic/helpers/form_helper.rb
staticmatic-0.11.0 lib/staticmatic/helpers/form_helper.rb
staticmatic-0.11.0.alpha.10 lib/staticmatic/helpers/form_helper.rb
staticmatic-0.11.0.alpha.9 lib/staticmatic/helpers/form_helper.rb