allpro/app/views/workouts/_form.html.erb

12 lines
276 B
Text

<%= form_for @workout do |f| %>
<% if @workout.errors.any? %>
<ul>
<% @workout.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>
<%= f.label :date %>
<%= f.text_field :date %>
<%= f.submit nil %>
<% end %>