<%= form_for project do |f| %> <% if project.errors.any? %>
    <% project.errors.full_messages.each do |message| %>
  • <%= message %>
  • <% end %>
<% end %>
<%= f.label :name %> <%= f.text_field :name, class: 'form-control', placeholder: 'Choose a name' %>
<%= f.submit 'Save', class: 'btn btn-success' %>  or <%= link_to 'Cancel', cancel_path, class: 'text-danger' %>
<% end %>