diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 22:17:36 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 22:17:36 -0500 |
commit | 5f2247dd1e701a91fb0359bf7265bdadd5486a60 (patch) | |
tree | 8966f53e304731faf26b19230439f831b215d3f1 /app/views/matches/_form.html.erb | |
parent | 4a91128f6fe20d95b6692abaa5e6c4dc92418b46 (diff) | |
parent | 2bfc17c39f9b8b5ea71d36d2d5f041295f24192f (diff) |
Merge branch 'master' of github.com:LukeShu/leaguer
Conflicts:
config/routes.rb
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 %> |