Hi all,
When I have
class User
:has_many :events
end
class Event
:belongs_to :user
end
class Game < Event
end
Why Can’t I do:
user = User.find(1)
user.games.build(params[:game])
I need to add to
class Game < Event
:belongs_to :user
end
and
class User
:has_many :events
:has_many :users
end
then
user = User.find(1)
user.games.build(params[:game])
will work.
Since Event already belongs_to user shoiuld game than also since it
inherites?
Regards,
Stijn