1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-02 21:24:25 +00:00

Removed delayed job and generate matches

This commit is contained in:
2015-03-16 09:13:12 -04:00
parent 2843760779
commit 6452aee07a
7 changed files with 33 additions and 81 deletions

View File

@@ -58,26 +58,4 @@ class StaticPagesController < ApplicationController
end
end
def generate_matches
if user_signed_in?
else
redirect_to root_path
end
if params[:tournament]
@tournament = Tournament.find(params[:tournament])
end
if @tournament
@tournament.generateMatches
end
end
end

View File

@@ -23,13 +23,6 @@
<%= @tournament.director_email %>
</p>
<br>
<br>
<% if user_signed_in? %>
<%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}" %>
<br>
BE CAREFUL <%= link_to "Generate Pool Matches" , "/static_pages/generate_matches?tournament=#{@tournament.id}", :class=>"btn" %>
<% end %>
<br>
<br>
<h3>School Lineups</h3>