Sha256: 0bcef6612f2312b50361d3caebcaeadbec61e9f5ccf6c7929037cece3016aa9c

Contents?: true

Size: 327 Bytes

Versions: 17

Compression:

Stored size: 327 Bytes

Contents

= simple_form_for(@<%= singular_table_name %>, :html => {'data-abide' => ''}) do |f|
  .form-inputs
<%- attributes.each do |attribute| -%>
    = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>, input_html: { required: ''}, hint: 'Cannot be blank.'
<%- end -%>
  .form-actions
    = f.button :submit

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
staple-0.4.5 source/simple_form/_form.html.slim
staple-0.4.4 source/simple_form/_form.html.slim
staple-0.4.3 source/simple_form/_form.html.slim
staple-0.4.2 source/simple_form/_form.html.slim
staple-0.4.1 source/simple_form/_form.html.slim
staple-0.3.0 source/simple_form/_form.html.slim
staple-0.2.1 source/simple_form/_form.html.slim
staple-0.2.0 source/simple_form/_form.html.slim
staple-0.1.7 source/simple_form/_form.html.slim
staple-0.1.6 source/simple_form/_form.html.slim
staple-0.1.5 source/simple_form/_form.html.slim
staple-0.1.4 source/simple_form/_form.html.slim
staple-0.1.3 source/simple_form/_form.html.slim
staple-0.1.2 source/simple_form/_form.html.slim
staple-0.1.1 source/simple_form/_form.html.slim
staple-0.1.0 source/simple_form/_form.html.slim
staple-0.0.9 source/simple_form/_form.html.slim