-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Done · Fixed a typo in migration 012_add_teams_to_tournaments · Added teams form to tournaments#edit (not working, just showing) Todo: · Create custom action "add_teams" for tournamentscontrollers git-svn-id: http://svn2.assembla.com/svn/fs/trunk/fpt@9 d4c3aac1-5b85-48de-b3bb-3a454bd87b0a
- Loading branch information
lmarcucci
committed
Feb 1, 2008
1 parent
435d14b
commit 6d66874
Showing
8 changed files
with
132 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ class WelcomeController < ApplicationController | |
|
||
def index | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
class AddTeamsToTournaments < ActiveRecord::Migration | ||
def self.up | ||
@apertura = Tournament.find('1016639365') | ||
@teams = Teams.find(:all) | ||
@teams = Team.find(:all) | ||
@apertura.teams << @teams | ||
@apertura.save! | ||
end | ||
|
||
def self.down | ||
# @apertura = Tournament.find('1016639365') | ||
# @apertura.teams.delete(:all) | ||
@apertura = Tournament.find('1016639365') | ||
@apertura.teams.delete | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters