%= form_for @bike, html: {class: 'form-horizontal'} do |f| %>
<% if @bike.errors.any? %>
<%= pluralize(@bike.errors.count, "error") %> prohibited this bike from being saved:
<% @bike.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= render 'fields', f: f %>
<%= f.submit class: "btn btn-default" %>
<% end %>