Sha256: 1fc9a0481c6ab688f52e6592d44142607da660f50f7e1c9f1aba86768474332f

Contents?: true

Size: 376 Bytes

Versions: 24

Compression:

Stored size: 376 Bytes

Contents

require 'action_view'

module Riveter
  module FormBuilderExtensions

    def search
      submit I18n.translate(:search, :scope => [:forms]), :name => :search
    end

    def reset
      submit I18n.translate(:reset, :scope => [:forms]), :name => :reset
    end

  end
end

module ActionView::Helpers
  class FormBuilder
    include Riveter::FormBuilderExtensions
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
riveter-0.8.3 lib/riveter/form_builder_extensions.rb
riveter-0.8.2 lib/riveter/form_builder_extensions.rb
riveter-0.8.1 lib/riveter/form_builder_extensions.rb
riveter-0.8.0 lib/riveter/form_builder_extensions.rb
riveter-0.7.0 lib/riveter/form_builder_extensions.rb
riveter-0.6.0 lib/riveter/form_builder_extensions.rb
riveter-0.3.0 lib/riveter/form_builder_extensions.rb
riveter-0.2.1 lib/riveter/form_builder_extensions.rb
riveter-0.2.0 lib/riveter/form_builder_extensions.rb
riveter-0.1.1 lib/riveter/form_builder_extensions.rb
riveter-0.0.15 lib/riveter/form_builder_extensions.rb
riveter-0.0.14 lib/riveter/form_builder_extensions.rb
riveter-0.0.13 lib/riveter/form_builder_extensions.rb
riveter-0.0.12 lib/riveter/form_builder_extensions.rb
riveter-0.0.11 lib/riveter/form_builder_extensions.rb
riveter-0.0.10 lib/riveter/form_builder_extensions.rb
riveter-0.0.9 lib/riveter/form_builder_extensions.rb
riveter-0.0.8 lib/riveter/form_builder_extensions.rb
riveter-0.0.7 lib/riveter/form_builder_extensions.rb
riveter-0.0.6 lib/riveter/form_builder_extensions.rb