[Rails] Re: team captain - habtm w/has_one...
Michael Barinek
barinek at gmail.com
Wed Jul 26 16:24:39 GMT 2006
last question...
so i still have a problem with select boxes and the controller...
class Team < ActiveRecord::Base
has_many :memberships
has_many :users, :through => :memberships
class User < ActiveRecord::Base
has_many :memberships
has_many :teams, :through => :memberships
class Membership < ActiveRecord::Base
belongs_to :user
belongs_to :team
def create
@team = Team.new(params[:team])
NoMethodError in TeamController#create
undefined method `user_ids=' for #<Team:0x2789500>
so i looked - user_ids isn't there - just membership_ids...
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list