Bike database interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
432 B

<%= form_for(@bike) do |f| %>
<% if @bike.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@bike.errors.count, "error") %> prohibited this bike from being saved:</h2>
<ul>
<% @bike.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<%= render 'fields', f: f %>
<div class="actions">
<%= f.submit %>
</div>
<% end %>