diff options
author | nfoy <nfoy@purdue.edu> | 2014-03-06 20:39:05 -0500 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-03-06 20:39:05 -0500 |
commit | e10bf58ec059ec263c1d1a9dcac608475377868a (patch) | |
tree | 548a7ce8c770df6716a7be2dba57fc8038ffc702 /app/views/matches/_form.html.erb | |
parent | 8e1ca0e4f9107a43fbdf0dac315e3467b0158356 (diff) |
matches routed
Diffstat (limited to 'app/views/matches/_form.html.erb')
-rw-r--r-- | app/views/matches/_form.html.erb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb index c5f1ba8..015aed0 100644 --- a/app/views/matches/_form.html.erb +++ b/app/views/matches/_form.html.erb @@ -1,16 +1,5 @@ -<%= form_for(@match) do |f| %> - <% if @match.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:</h2> - - <ul> - <% @match.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - +<%= form_for([@tournament, @tournament.matches.build]) do |f| %> + <div class="field"> <%= f.label :tournament_id %><br> <%= f.text_field :tournament_id %> |