%= form_for(@bike) 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 %>
<% end %>