Sha256: fb0127c6df66ffa815e3c9cbd37f3cfe5d963bc04b8bc631f3bc4e3aa7631787

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

module ExpressTemplates
  module Components
    # Provide hidden fields such as the authenticity token
    # and the utf8 enforcer tag as well as a method tag as
    # would be provided by Rails' form helpers.
    #
    # An optional method may be speficied.  Defaults to 'post'.
    class FormRailsSupport < Base
      include Capabilities::Configurable
      emits {
        div(style: 'display:none') {
          utf8_enforcer_tag
          method_tag(my[:id] || :post)
          token_tag
        }
      }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
express_templates-0.2.7 lib/express_templates/components/form_rails_support.rb
express_templates-0.2.6 lib/express_templates/components/form_rails_support.rb
express_templates-0.2.5 lib/express_templates/components/form_rails_support.rb
express_templates-0.2.4 lib/express_templates/components/form_rails_support.rb
express_templates-0.2.3 lib/express_templates/components/form_rails_support.rb
express_templates-0.2.2 lib/express_templates/components/form_rails_support.rb