search for: teamcontrol

Displaying 3 results from an estimated 3 matches for "teamcontrol".

Did you mean: memcontrol
2006 Jan 17
0
URL to method?
Do I need to edit routes.rb to get the following behavior? URL ==> method (source) /admin ==> AdminController#index (/controllers/admin_controller.rb) /admin/teams/list ==> Admin::TeamController#list (/controllers/admin/team_controller.rb) /admin/teams/edit/1 ==> Admin::TeamController#edit(:id => 1) (/controllers/admin/team_controller.rb) And will it wreck havoc with my views? Visit our website at http://www.ubs.com This message contains confidential information and is intended...
2006 Jul 18
1
Saving an ActiveRecord object
I get this error when I try to save an object that extends of ActiveRecord: NoMethodError in TeamController#add_player You have a nil object when you didn''t expect it! The error occured while evaluating nil.keys .... .... #{RAILS_ROOT}/app/models/player.rb:17:in `create_player'' #{RAILS_ROOT}/app/controllers/team_controller.rb:53:in `add_player'' And my Player model is: c...
2006 Jul 26
8
team captain - habtm w/has_one...
the below... class User < ActiveRecord::Base has_and_belongs_to_many :teams class Team < ActiveRecord::Base has_and_belongs_to_many :users has_one :captain, :class_name => ''User'' produces the error... Mysql::Error: Unknown column ''users.team_id'' in ''where clause'': SELECT * FROM users WHERE (users.team_id = 1) LIMIT 1 i