MitinPavel/hello_monument

View on GitHub
app/views/monuments/_form.haml

Summary

Maintainability
Test Coverage
= form_for [collection, monument], html: { class: 'monument_form' } do |f|

  = render 'shared/form_errors', form: f

  .form-group
    = f.label :name
    = f.text_field :name, class: "form-control"

  .form-group
    = f.label :description
    = f.text_area :description, class: "form-control"

  .form-group
    = f.label :category_list
    = f.text_field :category_list, class: "form-control"

  = f.submit 'Save', class: "btn btn-primary"