diff options
Diffstat (limited to 'app')
103 files changed, 0 insertions, 1275 deletions
diff --git a/app/assets/javascripts/alerts.js.coffee b/app/assets/javascripts/alerts.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/alerts.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/games.js.coffee b/app/assets/javascripts/games.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/games.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/main.js.coffee b/app/assets/javascripts/main.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/main.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/matches.js.coffee b/app/assets/javascripts/matches.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/matches.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/pms.js.coffee b/app/assets/javascripts/pms.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/pms.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/search.js.coffee b/app/assets/javascripts/search.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/search.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/servers.js.coffee b/app/assets/javascripts/servers.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/servers.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/teams.js.coffee b/app/assets/javascripts/teams.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/teams.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/tournaments.js.coffee b/app/assets/javascripts/tournaments.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/tournaments.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/users.js.coffee b/app/assets/javascripts/users.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/users.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/alerts.css.scss b/app/assets/stylesheets/alerts.css.scss deleted file mode 100644 index c01a620..0000000 --- a/app/assets/stylesheets/alerts.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the alerts controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/games.css.scss b/app/assets/stylesheets/games.css.scss deleted file mode 100644 index db1b7bc..0000000 --- a/app/assets/stylesheets/games.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the games controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/main.css.scss b/app/assets/stylesheets/main.css.scss deleted file mode 100644 index a0d94c1..0000000 --- a/app/assets/stylesheets/main.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the main controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/matches.css.scss b/app/assets/stylesheets/matches.css.scss deleted file mode 100644 index 4c396e3..0000000 --- a/app/assets/stylesheets/matches.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the matches controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/pms.css.scss b/app/assets/stylesheets/pms.css.scss deleted file mode 100644 index 5106093..0000000 --- a/app/assets/stylesheets/pms.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the pms controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/scaffolds.css.scss b/app/assets/stylesheets/scaffolds.css.scss deleted file mode 100644 index 6ec6a8f..0000000 --- a/app/assets/stylesheets/scaffolds.css.scss +++ /dev/null @@ -1,69 +0,0 @@ -body { - background-color: #fff; - color: #333; - font-family: verdana, arial, helvetica, sans-serif; - font-size: 13px; - line-height: 18px; -} - -p, ol, ul, td { - font-family: verdana, arial, helvetica, sans-serif; - font-size: 13px; - line-height: 18px; -} - -pre { - background-color: #eee; - padding: 10px; - font-size: 11px; -} - -a { - color: #000; - &:visited { - color: #666; - } - &:hover { - color: #fff; - background-color: #000; - } -} - -div { - &.field, &.actions { - margin-bottom: 10px; - } -} - -#notice { - color: green; -} - -.field_with_errors { - padding: 2px; - background-color: red; - display: table; -} - -#error_explanation { - width: 450px; - border: 2px solid red; - padding: 7px; - padding-bottom: 0; - margin-bottom: 20px; - background-color: #f0f0f0; - h2 { - text-align: left; - font-weight: bold; - padding: 5px 5px 5px 15px; - font-size: 12px; - margin: -7px; - margin-bottom: 0px; - background-color: #c00; - color: #fff; - } - ul li { - font-size: 12px; - list-style: square; - } -} diff --git a/app/assets/stylesheets/search.css.scss b/app/assets/stylesheets/search.css.scss deleted file mode 100644 index 22fd394..0000000 --- a/app/assets/stylesheets/search.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the search controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/servers.css.scss b/app/assets/stylesheets/servers.css.scss deleted file mode 100644 index 4710386..0000000 --- a/app/assets/stylesheets/servers.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the servers controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/teams.css.scss b/app/assets/stylesheets/teams.css.scss deleted file mode 100644 index 320d00d..0000000 --- a/app/assets/stylesheets/teams.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the teams controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/tournaments.css.scss b/app/assets/stylesheets/tournaments.css.scss deleted file mode 100644 index e372b90..0000000 --- a/app/assets/stylesheets/tournaments.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the tournaments controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/users.css.scss b/app/assets/stylesheets/users.css.scss deleted file mode 100644 index 1efc835..0000000 --- a/app/assets/stylesheets/users.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the users controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb deleted file mode 100644 index 873e9b7..0000000 --- a/app/controllers/alerts_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class AlertsController < ApplicationController - before_action :set_alert, only: [:show, :edit, :update, :destroy] - - # GET /alerts - # GET /alerts.json - def index - @alerts = Alert.all - end - - # GET /alerts/1 - # GET /alerts/1.json - def show - end - - # GET /alerts/new - def new - @alert = Alert.new - end - - # GET /alerts/1/edit - def edit - end - - # POST /alerts - # POST /alerts.json - def create - @alert = Alert.new(alert_params) - - respond_to do |format| - if @alert.save - format.html { redirect_to @alert, notice: 'Alert was successfully created.' } - format.json { render action: 'show', status: :created, location: @alert } - else - format.html { render action: 'new' } - format.json { render json: @alert.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /alerts/1 - # PATCH/PUT /alerts/1.json - def update - respond_to do |format| - if @alert.update(alert_params) - format.html { redirect_to @alert, notice: 'Alert was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @alert.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /alerts/1 - # DELETE /alerts/1.json - def destroy - @alert.destroy - respond_to do |format| - format.html { redirect_to alerts_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_alert - @alert = Alert.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def alert_params - params.require(:alert).permit(:author_id, :message) - end -end diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb deleted file mode 100644 index 4ecff17..0000000 --- a/app/controllers/games_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class GamesController < ApplicationController - before_action :set_game, only: [:show, :edit, :update, :destroy] - - # GET /games - # GET /games.json - def index - @games = Game.all - end - - # GET /games/1 - # GET /games/1.json - def show - end - - # GET /games/new - def new - @game = Game.new - end - - # GET /games/1/edit - def edit - end - - # POST /games - # POST /games.json - def create - @game = Game.new(game_params) - - respond_to do |format| - if @game.save - format.html { redirect_to @game, notice: 'Game was successfully created.' } - format.json { render action: 'show', status: :created, location: @game } - else - format.html { render action: 'new' } - format.json { render json: @game.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /games/1 - # PATCH/PUT /games/1.json - def update - respond_to do |format| - if @game.update(game_params) - format.html { redirect_to @game, notice: 'Game was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @game.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /games/1 - # DELETE /games/1.json - def destroy - @game.destroy - respond_to do |format| - format.html { redirect_to games_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_game - @game = Game.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def game_params - params.require(:game).permit(:name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams) - end -end diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb deleted file mode 100644 index 6519d7b..0000000 --- a/app/controllers/main_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class MainController < ApplicationController -end diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb deleted file mode 100644 index e9f3c5a..0000000 --- a/app/controllers/matches_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class MatchesController < ApplicationController - before_action :set_match, only: [:show, :edit, :update, :destroy] - - # GET /matches - # GET /matches.json - def index - @matches = Match.all - end - - # GET /matches/1 - # GET /matches/1.json - def show - end - - # GET /matches/new - def new - @match = Match.new - end - - # GET /matches/1/edit - def edit - end - - # POST /matches - # POST /matches.json - def create - @match = Match.new(match_params) - - respond_to do |format| - if @match.save - format.html { redirect_to @match, notice: 'Match was successfully created.' } - format.json { render action: 'show', status: :created, location: @match } - else - format.html { render action: 'new' } - format.json { render json: @match.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /matches/1 - # PATCH/PUT /matches/1.json - def update - respond_to do |format| - if @match.update(match_params) - format.html { redirect_to @match, notice: 'Match was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @match.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /matches/1 - # DELETE /matches/1.json - def destroy - @match.destroy - respond_to do |format| - format.html { redirect_to matches_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_match - @match = Match.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def match_params - params.require(:match).permit(:tournament_id) - end -end diff --git a/app/controllers/pms_controller.rb b/app/controllers/pms_controller.rb deleted file mode 100644 index 5dd0d69..0000000 --- a/app/controllers/pms_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class PmsController < ApplicationController - before_action :set_pm, only: [:show, :edit, :update, :destroy] - - # GET /pms - # GET /pms.json - def index - @pms = Pm.all - end - - # GET /pms/1 - # GET /pms/1.json - def show - end - - # GET /pms/new - def new - @pm = Pm.new - end - - # GET /pms/1/edit - def edit - end - - # POST /pms - # POST /pms.json - def create - @pm = Pm.new(pm_params) - - respond_to do |format| - if @pm.save - format.html { redirect_to @pm, notice: 'Pm was successfully created.' } - format.json { render action: 'show', status: :created, location: @pm } - else - format.html { render action: 'new' } - format.json { render json: @pm.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /pms/1 - # PATCH/PUT /pms/1.json - def update - respond_to do |format| - if @pm.update(pm_params) - format.html { redirect_to @pm, notice: 'Pm was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @pm.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /pms/1 - # DELETE /pms/1.json - def destroy - @pm.destroy - respond_to do |format| - format.html { redirect_to pms_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_pm - @pm = Pm.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def pm_params - params.require(:pm).permit(:author_id, :recipient_id, :message) - end -end diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb deleted file mode 100644 index ee61487..0000000 --- a/app/controllers/search_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class SearchController < ApplicationController -end diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb deleted file mode 100644 index 7d54eb6..0000000 --- a/app/controllers/servers_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class ServersController < ApplicationController - before_action :set_server, only: [:show, :edit, :update, :destroy] - - # GET /servers - # GET /servers.json - def index - @servers = Server.all - end - - # GET /servers/1 - # GET /servers/1.json - def show - end - - # GET /servers/new - def new - @server = Server.new - end - - # GET /servers/1/edit - def edit - end - - # POST /servers - # POST /servers.json - def create - @server = Server.new(server_params) - - respond_to do |format| - if @server.save - format.html { redirect_to @server, notice: 'Server was successfully created.' } - format.json { render action: 'show', status: :created, location: @server } - else - format.html { render action: 'new' } - format.json { render json: @server.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /servers/1 - # PATCH/PUT /servers/1.json - def update - respond_to do |format| - if @server.update(server_params) - format.html { redirect_to @server, notice: 'Server was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @server.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /servers/1 - # DELETE /servers/1.json - def destroy - @server.destroy - respond_to do |format| - format.html { redirect_to servers_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_server - @server = Server.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def server_params - params[:server] - end -end diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb deleted file mode 100644 index f14c97f..0000000 --- a/app/controllers/teams_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class TeamsController < ApplicationController - before_action :set_team, only: [:show, :edit, :update, :destroy] - - # GET /teams - # GET /teams.json - def index - @teams = Team.all - end - - # GET /teams/1 - # GET /teams/1.json - def show - end - - # GET /teams/new - def new - @team = Team.new - end - - # GET /teams/1/edit - def edit - end - - # POST /teams - # POST /teams.json - def create - @team = Team.new(team_params) - - respond_to do |format| - if @team.save - format.html { redirect_to @team, notice: 'Team was successfully created.' } - format.json { render action: 'show', status: :created, location: @team } - else - format.html { render action: 'new' } - format.json { render json: @team.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /teams/1 - # PATCH/PUT /teams/1.json - def update - respond_to do |format| - if @team.update(team_params) - format.html { redirect_to @team, notice: 'Team was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @team.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /teams/1 - # DELETE /teams/1.json - def destroy - @team.destroy - respond_to do |format| - format.html { redirect_to teams_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_team - @team = Team.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def team_params - params[:team] - end -end diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb deleted file mode 100644 index 720305f..0000000 --- a/app/controllers/tournaments_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class TournamentsController < ApplicationController - before_action :set_tournament, only: [:show, :edit, :update, :destroy] - - # GET /tournaments - # GET /tournaments.json - def index - @tournaments = Tournament.all - end - - # GET /tournaments/1 - # GET /tournaments/1.json - def show - end - - # GET /tournaments/new - def new - @tournament = Tournament.new - end - - # GET /tournaments/1/edit - def edit - end - - # POST /tournaments - # POST /tournaments.json - def create - @tournament = Tournament.new(tournament_params) - - respond_to do |format| - if @tournament.save - format.html { redirect_to @tournament, notice: 'Tournament was successfully created.' } - format.json { render action: 'show', status: :created, location: @tournament } - else - format.html { render action: 'new' } - format.json { render json: @tournament.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /tournaments/1 - # PATCH/PUT /tournaments/1.json - def update - respond_to do |format| - if @tournament.update(tournament_params) - format.html { redirect_to @tournament, notice: 'Tournament was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @tournament.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /tournaments/1 - # DELETE /tournaments/1.json - def destroy - @tournament.destroy - respond_to do |format| - format.html { redirect_to tournaments_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_tournament - @tournament = Tournament.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def tournament_params - params.require(:tournament).permit(:game_id) - end -end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb deleted file mode 100644 index 3e74dea..0000000 --- a/app/controllers/users_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class UsersController < ApplicationController -end diff --git a/app/helpers/alerts_helper.rb b/app/helpers/alerts_helper.rb deleted file mode 100644 index 20f5b50..0000000 --- a/app/helpers/alerts_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module AlertsHelper -end diff --git a/app/helpers/games_helper.rb b/app/helpers/games_helper.rb deleted file mode 100644 index 2ef8c1f..0000000 --- a/app/helpers/games_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module GamesHelper -end diff --git a/app/helpers/main_helper.rb b/app/helpers/main_helper.rb deleted file mode 100644 index 826effe..0000000 --- a/app/helpers/main_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module MainHelper -end diff --git a/app/helpers/matches_helper.rb b/app/helpers/matches_helper.rb deleted file mode 100644 index cc2ef83..0000000 --- a/app/helpers/matches_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module MatchesHelper -end diff --git a/app/helpers/pms_helper.rb b/app/helpers/pms_helper.rb deleted file mode 100644 index 0188e59..0000000 --- a/app/helpers/pms_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module PmsHelper -end diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb deleted file mode 100644 index b3ce20a..0000000 --- a/app/helpers/search_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module SearchHelper -end diff --git a/app/helpers/servers_helper.rb b/app/helpers/servers_helper.rb deleted file mode 100644 index a36fb17..0000000 --- a/app/helpers/servers_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ServersHelper -end diff --git a/app/helpers/teams_helper.rb b/app/helpers/teams_helper.rb deleted file mode 100644 index 5fb41eb..0000000 --- a/app/helpers/teams_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TeamsHelper -end diff --git a/app/helpers/tournaments_helper.rb b/app/helpers/tournaments_helper.rb deleted file mode 100644 index 2b6e27c..0000000 --- a/app/helpers/tournaments_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TournamentsHelper -end diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb deleted file mode 100644 index 2310a24..0000000 --- a/app/helpers/users_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module UsersHelper -end diff --git a/app/models/alert.rb b/app/models/alert.rb deleted file mode 100644 index 343c269..0000000 --- a/app/models/alert.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Alert < ActiveRecord::Base - belongs_to :author -end diff --git a/app/models/game.rb b/app/models/game.rb deleted file mode 100644 index a181c26..0000000 --- a/app/models/game.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Game < ActiveRecord::Base -end diff --git a/app/models/game_attribute.rb b/app/models/game_attribute.rb deleted file mode 100644 index c12723b..0000000 --- a/app/models/game_attribute.rb +++ /dev/null @@ -1,3 +0,0 @@ -class GameAttribute < ActiveRecord::Base - belongs_to :game -end diff --git a/app/models/match.rb b/app/models/match.rb deleted file mode 100644 index 533435a..0000000 --- a/app/models/match.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Match < ActiveRecord::Base - belongs_to :tournament -end diff --git a/app/models/pm.rb b/app/models/pm.rb deleted file mode 100644 index ab5af3b..0000000 --- a/app/models/pm.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Pm < ActiveRecord::Base - belongs_to :author - belongs_to :recipient -end diff --git a/app/models/server.rb b/app/models/server.rb deleted file mode 100644 index 120f0fa..0000000 --- a/app/models/server.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Server < ActiveRecord::Base -end diff --git a/app/models/server_settings.rb b/app/models/server_settings.rb deleted file mode 100644 index 7f49863..0000000 --- a/app/models/server_settings.rb +++ /dev/null @@ -1,2 +0,0 @@ -class ServerSettings < ActiveRecord::Base -end diff --git a/app/models/team.rb b/app/models/team.rb deleted file mode 100644 index fa7ba9e..0000000 --- a/app/models/team.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Team < ActiveRecord::Base -end diff --git a/app/models/team_match_pair.rb b/app/models/team_match_pair.rb deleted file mode 100644 index 85f8eaa..0000000 --- a/app/models/team_match_pair.rb +++ /dev/null @@ -1,4 +0,0 @@ -class TeamMatchPair < ActiveRecord::Base - belongs_to :team - belongs_to :match -end diff --git a/app/models/tournament.rb b/app/models/tournament.rb deleted file mode 100644 index cc915a0..0000000 --- a/app/models/tournament.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Tournament < ActiveRecord::Base - belongs_to :game -end diff --git a/app/models/tournament_option.rb b/app/models/tournament_option.rb deleted file mode 100644 index 950b351..0000000 --- a/app/models/tournament_option.rb +++ /dev/null @@ -1,2 +0,0 @@ -class TournamentOption < ActiveRecord::Base -end diff --git a/app/models/user.rb b/app/models/user.rb deleted file mode 100644 index 4a57cf0..0000000 --- a/app/models/user.rb +++ /dev/null @@ -1,2 +0,0 @@ -class User < ActiveRecord::Base -end diff --git a/app/models/user_team_pair.rb b/app/models/user_team_pair.rb deleted file mode 100644 index c55dc2e..0000000 --- a/app/models/user_team_pair.rb +++ /dev/null @@ -1,4 +0,0 @@ -class UserTeamPair < ActiveRecord::Base - belongs_to :user - belongs_to :team -end diff --git a/app/views/alerts/_form.html.erb b/app/views/alerts/_form.html.erb deleted file mode 100644 index b60eaf2..0000000 --- a/app/views/alerts/_form.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<%= form_for(@alert) do |f| %> - <% if @alert.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@alert.errors.count, "error") %> prohibited this alert from being saved:</h2> - - <ul> - <% @alert.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="field"> - <%= f.label :author_id %><br> - <%= f.text_field :author_id %> - </div> - <div class="field"> - <%= f.label :message %><br> - <%= f.text_area :message %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/alerts/edit.html.erb b/app/views/alerts/edit.html.erb deleted file mode 100644 index ad99164..0000000 --- a/app/views/alerts/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing alert</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @alert %> | -<%= link_to 'Back', alerts_path %> diff --git a/app/views/alerts/index.html.erb b/app/views/alerts/index.html.erb deleted file mode 100644 index 458b951..0000000 --- a/app/views/alerts/index.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<h1>Listing alerts</h1> - -<table> - <thead> - <tr> - <th>Author</th> - <th>Message</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @alerts.each do |alert| %> - <tr> - <td><%= alert.author %></td> - <td><%= alert.message %></td> - <td><%= link_to 'Show', alert %></td> - <td><%= link_to 'Edit', edit_alert_path(alert) %></td> - <td><%= link_to 'Destroy', alert, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Alert', new_alert_path %> diff --git a/app/views/alerts/index.json.jbuilder b/app/views/alerts/index.json.jbuilder deleted file mode 100644 index 0911a5c..0000000 --- a/app/views/alerts/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@alerts) do |alert| - json.extract! alert, :id, :author_id, :message - json.url alert_url(alert, format: :json) -end diff --git a/app/views/alerts/new.html.erb b/app/views/alerts/new.html.erb deleted file mode 100644 index 6d04589..0000000 --- a/app/views/alerts/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New alert</h1> - -<%= render 'form' %> - -<%= link_to 'Back', alerts_path %> diff --git a/app/views/alerts/show.html.erb b/app/views/alerts/show.html.erb deleted file mode 100644 index eeab7f7..0000000 --- a/app/views/alerts/show.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Author:</strong> - <%= @alert.author %> -</p> - -<p> - <strong>Message:</strong> - <%= @alert.message %> -</p> - -<%= link_to 'Edit', edit_alert_path(@alert) %> | -<%= link_to 'Back', alerts_path %> diff --git a/app/views/alerts/show.json.jbuilder b/app/views/alerts/show.json.jbuilder deleted file mode 100644 index 95481eb..0000000 --- a/app/views/alerts/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @alert, :id, :author_id, :message, :created_at, :updated_at diff --git a/app/views/games/_form.html.erb b/app/views/games/_form.html.erb deleted file mode 100644 index 8941c59..0000000 --- a/app/views/games/_form.html.erb +++ /dev/null @@ -1,37 +0,0 @@ -<%= form_for(@game) do |f| %> - <% if @game.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@game.errors.count, "error") %> prohibited this game from being saved:</h2> - - <ul> - <% @game.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="field"> - <%= f.label :name %><br> - <%= f.text_area :name %> - </div> - <div class="field"> - <%= f.label :players_per_team %><br> - <%= f.number_field :players_per_team %> - </div> - <div class="field"> - <%= f.label :teams_per_match %><br> - <%= f.number_field :teams_per_match %> - </div> - <div class="field"> - <%= f.label :set_rounds %><br> - <%= f.number_field :set_rounds %> - </div> - <div class="field"> - <%= f.label :randomized_teams %><br> - <%= f.number_field :randomized_teams %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/games/edit.html.erb b/app/views/games/edit.html.erb deleted file mode 100644 index d72bd2e..0000000 --- a/app/views/games/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing game</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @game %> | -<%= link_to 'Back', games_path %> diff --git a/app/views/games/index.html.erb b/app/views/games/index.html.erb deleted file mode 100644 index ccd0f63..0000000 --- a/app/views/games/index.html.erb +++ /dev/null @@ -1,35 +0,0 @@ -<h1>Listing games</h1> - -<table> - <thead> - <tr> - <th>Name</th> - <th>Players per team</th> - <th>Teams per match</th> - <th>Set rounds</th> - <th>Randomized teams</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @games.each do |game| %> - <tr> - <td><%= game.name %></td> - <td><%= game.players_per_team %></td> - <td><%= game.teams_per_match %></td> - <td><%= game.set_rounds %></td> - <td><%= game.randomized_teams %></td> - <td><%= link_to 'Show', game %></td> - <td><%= link_to 'Edit', edit_game_path(game) %></td> - <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Game', new_game_path %> diff --git a/app/views/games/index.json.jbuilder b/app/views/games/index.json.jbuilder deleted file mode 100644 index 7e5c1a1..0000000 --- a/app/views/games/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@games) do |game| - json.extract! game, :id, :name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams - json.url game_url(game, format: :json) -end diff --git a/app/views/games/new.html.erb b/app/views/games/new.html.erb deleted file mode 100644 index ab95f70..0000000 --- a/app/views/games/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New game</h1> - -<%= render 'form' %> - -<%= link_to 'Back', games_path %> diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb deleted file mode 100644 index 7986016..0000000 --- a/app/views/games/show.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Name:</strong> - <%= @game.name %> -</p> - -<p> - <strong>Players per team:</strong> - <%= @game.players_per_team %> -</p> - -<p> - <strong>Teams per match:</strong> - <%= @game.teams_per_match %> -</p> - -<p> - <strong>Set rounds:</strong> - <%= @game.set_rounds %> -</p> - -<p> - <strong>Randomized teams:</strong> - <%= @game.randomized_teams %> -</p> - -<%= link_to 'Edit', edit_game_path(@game) %> | -<%= link_to 'Back', games_path %> diff --git a/app/views/games/show.json.jbuilder b/app/views/games/show.json.jbuilder deleted file mode 100644 index 1a2d0c7..0000000 --- a/app/views/games/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @game, :id, :name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams, :created_at, :updated_at diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb deleted file mode 100644 index 34494c3..0000000 --- a/app/views/matches/_form.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -<%= 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 %> - - <div class="field"> - <%= f.label :tournament_id %><br> - <%= f.text_field :tournament_id %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/matches/edit.html.erb b/app/views/matches/edit.html.erb deleted file mode 100644 index 38b7d70..0000000 --- a/app/views/matches/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing match</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @match %> | -<%= link_to 'Back', matches_path %> diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb deleted file mode 100644 index d8122ac..0000000 --- a/app/views/matches/index.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -<h1>Listing matches</h1> - -<table> - <thead> - <tr> - <th>Tournament</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @matches.each do |match| %> - <tr> - <td><%= match.tournament %></td> - <td><%= link_to 'Show', match %></td> - <td><%= link_to 'Edit', edit_match_path(match) %></td> - <td><%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Match', new_match_path %> diff --git a/app/views/matches/index.json.jbuilder b/app/views/matches/index.json.jbuilder deleted file mode 100644 index c8ada7a..0000000 --- a/app/views/matches/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@matches) do |match| - json.extract! match, :id, :tournament_id - json.url match_url(match, format: :json) -end diff --git a/app/views/matches/new.html.erb b/app/views/matches/new.html.erb deleted file mode 100644 index bd4c78c..0000000 --- a/app/views/matches/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New match</h1> - -<%= render 'form' %> - -<%= link_to 'Back', matches_path %> diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb deleted file mode 100644 index 7bab721..0000000 --- a/app/views/matches/show.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Tournament:</strong> - <%= @match.tournament %> -</p> - -<%= link_to 'Edit', edit_match_path(@match) %> | -<%= link_to 'Back', matches_path %> diff --git a/app/views/matches/show.json.jbuilder b/app/views/matches/show.json.jbuilder deleted file mode 100644 index 2e45395..0000000 --- a/app/views/matches/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @match, :id, :tournament_id, :created_at, :updated_at diff --git a/app/views/pms/_form.html.erb b/app/views/pms/_form.html.erb deleted file mode 100644 index 480e308..0000000 --- a/app/views/pms/_form.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<%= form_for(@pm) do |f| %> - <% if @pm.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@pm.errors.count, "error") %> prohibited this pm from being saved:</h2> - - <ul> - <% @pm.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="field"> - <%= f.label :author_id %><br> - <%= f.text_field :author_id %> - </div> - <div class="field"> - <%= f.label :recipient_id %><br> - <%= f.text_field :recipient_id %> - </div> - <div class="field"> - <%= f.label :message %><br> - <%= f.text_area :message %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/pms/edit.html.erb b/app/views/pms/edit.html.erb deleted file mode 100644 index 074a4fd..0000000 --- a/app/views/pms/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing pm</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @pm %> | -<%= link_to 'Back', pms_path %> diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb deleted file mode 100644 index cb7fe4b..0000000 --- a/app/views/pms/index.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<h1>Listing pms</h1> - -<table> - <thead> - <tr> - <th>Author</th> - <th>Recipient</th> - <th>Message</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @pms.each do |pm| %> - <tr> - <td><%= pm.author %></td> - <td><%= pm.recipient %></td> - <td><%= pm.message %></td> - <td><%= link_to 'Show', pm %></td> - <td><%= link_to 'Edit', edit_pm_path(pm) %></td> - <td><%= link_to 'Destroy', pm, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Pm', new_pm_path %> diff --git a/app/views/pms/index.json.jbuilder b/app/views/pms/index.json.jbuilder deleted file mode 100644 index fcfca84..0000000 --- a/app/views/pms/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@pms) do |pm| - json.extract! pm, :id, :author_id, :recipient_id, :message - json.url pm_url(pm, format: :json) -end diff --git a/app/views/pms/new.html.erb b/app/views/pms/new.html.erb deleted file mode 100644 index 29e24ec..0000000 --- a/app/views/pms/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New pm</h1> - -<%= render 'form' %> - -<%= link_to 'Back', pms_path %> diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb deleted file mode 100644 index 5ee483f..0000000 --- a/app/views/pms/show.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Author:</strong> - <%= @pm.author %> -</p> - -<p> - <strong>Recipient:</strong> - <%= @pm.recipient %> -</p> - -<p> - <strong>Message:</strong> - <%= @pm.message %> -</p> - -<%= link_to 'Edit', edit_pm_path(@pm) %> | -<%= link_to 'Back', pms_path %> diff --git a/app/views/pms/show.json.jbuilder b/app/views/pms/show.json.jbuilder deleted file mode 100644 index 94252e9..0000000 --- a/app/views/pms/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @pm, :id, :author_id, :recipient_id, :message, :created_at, :updated_at diff --git a/app/views/servers/_form.html.erb b/app/views/servers/_form.html.erb deleted file mode 100644 index b08654b..0000000 --- a/app/views/servers/_form.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -<%= form_for(@server) do |f| %> - <% if @server.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@server.errors.count, "error") %> prohibited this server from being saved:</h2> - - <ul> - <% @server.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/servers/edit.html.erb b/app/views/servers/edit.html.erb deleted file mode 100644 index a92cdb5..0000000 --- a/app/views/servers/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing server</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @server %> | -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/index.html.erb b/app/views/servers/index.html.erb deleted file mode 100644 index f45d393..0000000 --- a/app/views/servers/index.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<h1>Listing servers</h1> - -<table> - <thead> - <tr> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @servers.each do |server| %> - <tr> - <td><%= link_to 'Show', server %></td> - <td><%= link_to 'Edit', edit_server_path(server) %></td> - <td><%= link_to 'Destroy', server, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Server', new_server_path %> diff --git a/app/views/servers/index.json.jbuilder b/app/views/servers/index.json.jbuilder deleted file mode 100644 index 2776abc..0000000 --- a/app/views/servers/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@servers) do |server| - json.extract! server, :id - json.url server_url(server, format: :json) -end diff --git a/app/views/servers/new.html.erb b/app/views/servers/new.html.erb deleted file mode 100644 index 0422009..0000000 --- a/app/views/servers/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New server</h1> - -<%= render 'form' %> - -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/show.html.erb b/app/views/servers/show.html.erb deleted file mode 100644 index 039cd8f..0000000 --- a/app/views/servers/show.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<p id="notice"><%= notice %></p> - -<%= link_to 'Edit', edit_server_path(@server) %> | -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/show.json.jbuilder b/app/views/servers/show.json.jbuilder deleted file mode 100644 index 972b1c0..0000000 --- a/app/views/servers/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @server, :id, :created_at, :updated_at diff --git a/app/views/teams/_form.html.erb b/app/views/teams/_form.html.erb deleted file mode 100644 index fd10129..0000000 --- a/app/views/teams/_form.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -<%= form_for(@team) do |f| %> - <% if @team.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@team.errors.count, "error") %> prohibited this team from being saved:</h2> - - <ul> - <% @team.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/teams/edit.html.erb b/app/views/teams/edit.html.erb deleted file mode 100644 index 49858ad..0000000 --- a/app/views/teams/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing team</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @team %> | -<%= link_to 'Back', teams_path %> diff --git a/app/views/teams/index.html.erb b/app/views/teams/index.html.erb deleted file mode 100644 index b077e10..0000000 --- a/app/views/teams/index.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<h1>Listing teams</h1> - -<table> - <thead> - <tr> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @teams.each do |team| %> - <tr> - <td><%= link_to 'Show', team %></td> - <td><%= link_to 'Edit', edit_team_path(team) %></td> - <td><%= link_to 'Destroy', team, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Team', new_team_path %> diff --git a/app/views/teams/index.json.jbuilder b/app/views/teams/index.json.jbuilder deleted file mode 100644 index b29428b..0000000 --- a/app/views/teams/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@teams) do |team| - json.extract! team, :id - json.url team_url(team, format: :json) -end diff --git a/app/views/teams/new.html.erb b/app/views/teams/new.html.erb deleted file mode 100644 index 433d944..0000000 --- a/app/views/teams/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New team</h1> - -<%= render 'form' %> - -<%= link_to 'Back', teams_path %> diff --git a/app/views/teams/show.html.erb b/app/views/teams/show.html.erb deleted file mode 100644 index 5b18d33..0000000 --- a/app/views/teams/show.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<p id="notice"><%= notice %></p> - -<%= link_to 'Edit', edit_team_path(@team) %> | -<%= link_to 'Back', teams_path %> diff --git a/app/views/teams/show.json.jbuilder b/app/views/teams/show.json.jbuilder deleted file mode 100644 index 1538019..0000000 --- a/app/views/teams/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @team, :id, :created_at, :updated_at diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb deleted file mode 100644 index 1fd63e9..0000000 --- a/app/views/tournaments/_form.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -<%= form_for(@tournament) do |f| %> - <% if @tournament.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:</h2> - - <ul> - <% @tournament.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="field"> - <%= f.label :game_id %><br> - <%= f.text_field :game_id %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/tournaments/edit.html.erb b/app/views/tournaments/edit.html.erb deleted file mode 100644 index 2913025..0000000 --- a/app/views/tournaments/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing tournament</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @tournament %> | -<%= link_to 'Back', tournaments_path %> diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb deleted file mode 100644 index ad2b7cf..0000000 --- a/app/views/tournaments/index.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -<h1>Listing tournaments</h1> - -<table> - <thead> - <tr> - <th>Game</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @tournaments.each do |tournament| %> - <tr> - <td><%= tournament.game %></td> - <td><%= link_to 'Show', tournament %></td> - <td><%= link_to 'Edit', edit_tournament_path(tournament) %></td> - <td><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Tournament', new_tournament_path %> diff --git a/app/views/tournaments/index.json.jbuilder b/app/views/tournaments/index.json.jbuilder deleted file mode 100644 index e6f3b49..0000000 --- a/app/views/tournaments/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@tournaments) do |tournament| - json.extract! tournament, :id, :game_id - json.url tournament_url(tournament, format: :json) -end diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb deleted file mode 100644 index 2a60539..0000000 --- a/app/views/tournaments/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New tournament</h1> - -<%= render 'form' %> - -<%= link_to 'Back', tournaments_path %> diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb deleted file mode 100644 index 30df788..0000000 --- a/app/views/tournaments/show.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Game:</strong> - <%= @tournament.game %> -</p> - -<%= link_to 'Edit', edit_tournament_path(@tournament) %> | -<%= link_to 'Back', tournaments_path %> diff --git a/app/views/tournaments/show.json.jbuilder b/app/views/tournaments/show.json.jbuilder deleted file mode 100644 index 0fe65a6..0000000 --- a/app/views/tournaments/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @tournament, :id, :game_id, :created_at, :updated_at |