Sha256: 76255122e289dde2e926f931ae8ce416ae25d3370b843f337ffa0815c053c9a4

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 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 form_verb.to_sym == :get || 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

3 entries across 3 versions & 1 rubygems

Version Path
ditty-0.11.1 views/partials/form_tag.haml
ditty-0.10.2 views/partials/form_tag.haml
ditty-0.10.1 views/partials/form_tag.haml