mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 22:44:14 +00:00
Added basic scaffolds for schools wrestlers and weights
This commit is contained in:
21
app/views/weights/_form.html.erb
Normal file
21
app/views/weights/_form.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<%= form_for(@weight) do |f| %>
|
||||
<% if @weight.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@weight.errors.count, "error") %> prohibited this weight from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @weight.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :max %><br>
|
||||
<%= f.number_field :max %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user