diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 19:04:36 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 19:04:36 -0500 |
commit | 6db29eb669a85e5b0aac7a1e8879781a1cb77772 (patch) | |
tree | 26114b3a2385a839220ef3e59dac65b561ca3793 /app/controllers/tournaments_controller.rb | |
parent | 40e0c9cf507dc27c9553af5ca962e3c65dc42780 (diff) | |
parent | e1d73b277cbc55615d10dbb842480f970ae5a538 (diff) |
Merge branch 'master' of github.com:LukeShu/leager
Diffstat (limited to 'app/controllers/tournaments_controller.rb')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 27ba020..5c53693 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -15,6 +15,7 @@ class TournamentsController < ApplicationController # GET /tournaments/new def new @game_names = Game.all.collect + @game = params[:game] @tournament = Tournament.new end @@ -22,12 +23,6 @@ class TournamentsController < ApplicationController def edit end - def selected - render :update do |page| - page.replace_html 'ajax-form', :partial => 'selected' - end - end - # POST /tournaments # POST /tournaments.json def create @@ -76,6 +71,6 @@ class TournamentsController < ApplicationController # Never trust parameters from the scary internet, only allow the white list through. def tournament_params - params.require(:tournament).permit(:game_id) + params.require(:tournament).permit(:game_id, :game) end end |