Sha256: fefc38cf34ee2b74e0ed566e39ef1bb880cea0963abf08fa377729cedbb020ac

Contents?: true

Size: 348 Bytes

Versions: 41

Compression:

Stored size: 348 Bytes

Contents

module ActionView
  module Helpers
    module FormHelper
      def button(label, options = {})
        content_tag(:button, {:type => :submit}.update(options)) do
          label.to_s
        end
      end
    end
    
    class FormBuilder
      def button(label, options = {})
        @template.button(label, options)
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 lib/extensions/action_view.rb
alchemy_cms-2.0.7 lib/extensions/action_view.rb
alchemy_cms-2.1.11 lib/extensions/action_view.rb
alchemy_cms-2.1.9.1 lib/extensions/action_view.rb
alchemy_cms-2.1.9 lib/extensions/action_view.rb
alchemy_cms-2.1.8.1 lib/extensions/action_view.rb
alchemy_cms-2.1.8 lib/extensions/action_view.rb
alchemy_cms-2.1.7 lib/extensions/action_view.rb
alchemy_cms-2.1.6 lib/extensions/action_view.rb
alchemy_cms-2.1.5 lib/extensions/action_view.rb
alchemy_cms-2.1.4 lib/extensions/action_view.rb
alchemy_cms-2.1.3 lib/extensions/action_view.rb
alchemy_cms-2.1.2 lib/extensions/action_view.rb
alchemy_cms-2.1.1 lib/extensions/action_view.rb
alchemy_cms-2.1 lib/extensions/action_view.rb
alchemy_cms-2.1.rc6 lib/extensions/action_view.rb
alchemy_cms-2.1.rc5 lib/extensions/action_view.rb
alchemy_cms-2.1.rc4 lib/extensions/action_view.rb
alchemy_cms-2.1.rc3 lib/extensions/action_view.rb
alchemy_cms-2.1.rc2 lib/extensions/action_view.rb