From b77cb4d39eeefd50cdf022a27b3eb2468ea7a83a Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Thu, 5 Nov 2015 03:05:45 +0000 Subject: [PATCH] .all should not be in views --- app/views/mats/_form.html.erb | 7 +------ app/views/schools/_form.html.erb | 5 ----- app/views/weights/_form.html.erb | 6 ------ 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/app/views/mats/_form.html.erb b/app/views/mats/_form.html.erb index 4a654a0..0e7a111 100644 --- a/app/views/mats/_form.html.erb +++ b/app/views/mats/_form.html.erb @@ -17,12 +17,7 @@ <% if @tournament_field %> - <%= f.hidden_field :tournament_id, :value => @tournament_field %> -<% else %> -
- <%= f.label 'Tournament' %>
- <%= f.collection_select :tournament_id, Tournament.all, :id, :name %> -
+ <%= f.hidden_field :tournament_id, :value => @tournament_field %>S <% end %>
diff --git a/app/views/schools/_form.html.erb b/app/views/schools/_form.html.erb index 7d3c724..7eaa610 100644 --- a/app/views/schools/_form.html.erb +++ b/app/views/schools/_form.html.erb @@ -18,11 +18,6 @@ <% if @school %> <%= f.hidden_field :tournament_id, :value => @tournament_field %> - <% else %> -
- <%= f.label 'Tournament' %>
- <%= f.collection_select :tournament_id, Tournament.all, :id, :name %> -
<% end %>
diff --git a/app/views/weights/_form.html.erb b/app/views/weights/_form.html.erb index c85057d..10436cd 100644 --- a/app/views/weights/_form.html.erb +++ b/app/views/weights/_form.html.erb @@ -18,12 +18,6 @@ <% if @weight %> <%= f.hidden_field :tournament_id, :value => @tournament_field %> - <% else %> -
- <%= f.label 'Tournament' %>
- <%= f.collection_select :tournament_id, Tournament.all, :id, :name %> -
- <% end %>
<%= f.submit 'Submit', :class=>"btn btn-success" %>