Sha256: 259df740bb820331818f6e2cf74fb21d754151af5fad1a2804519be5b7916814

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

- options = element.options
- _method = options.delete(:_method)
- title   = options.delete(:title)
- content = element.content

%form{options}
  %input{:type => "hidden", :name => "authenticity_token", :value => form_authenticity_token}
  - if _method
    %input{:type => "hidden", :name => "_method", :value => _method}

  .title= title
  =capture &content unless content.nil?

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
formic-0.2.1 views/formic/default/_form.html.haml
formic-0.1.0 views/formic/default/_form.html.haml