Sha256: d3d225c5894f8437be342a9e4dd892af76a80eda50b6733f4d73915b95c9603a

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

%form{ { method: %i[get post].include?(form_verb.to_sym) ? form_verb : :post, action: url }.merge(attributes) }
  = Rack::Csrf.csrf_tag(env) unless ENV['APP_ENV'] == 'test'
  - if form_verb.to_sym == :get && layout
    %input{ name: 'layout', value: layout, type: 'hidden' }
  - if %i[get post].include?(form_verb.to_sym) == false
    %input{ name: '_method', value: form_verb.upcase, type: 'hidden' }
  = capture_haml(&block).chomp

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ditty-0.9.1 views/partials/form_tag.haml
ditty-0.9.0 views/partials/form_tag.haml
ditty-0.8.0 views/partials/form_tag.haml
ditty-0.7.2 views/partials/form_tag.haml
ditty-0.7.1 views/partials/form_tag.haml
ditty-0.7.0 views/partials/form_tag.haml
ditty-0.7.0.pre.rc1 views/partials/form_tag.haml