rubyforgood/babywearing

View on GitHub
app/views/agreements/_form.html.erb

Summary

Maintainability
Test Coverage
<%= form_with(model: agreement, local: true) do |form| %>
  <%= form_errors agreement %>

  <div class="form-group">
    <%= form.label :name %>
    <%= form.text_field :name, class: "form-control" %>
  </div>

  <%= form.submit class: "btn btn-primary" %>
<% end %>