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

13 lines
276 B
Text
Raw Normal View History

2013-08-05 01:07:11 -04:00
<%= form_for @workout do |f| %>
<% if @workout.errors.any? %>
<ul>
<% @workout.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>
2013-08-05 01:07:11 -04:00
<%= f.label :date %>
<%= f.text_field :date %>
<%= f.submit nil %>
<% end %>