I am working on a scheduling app and I have a perpelextion (new word).
I am wondering if the problem is my data model
I have Users.
Users can create Events.
Users can be invited to Events created by other Users.
class User < ActiveRecord::Base
has_many :invitations # invitations to other users’ events
has_many :events, :through => :invitations # all events the user is
#HERE IS THE PROBLEM
has_many :events # the events that the user is the owner of
class Event < ActiveRecord::Base
class Invitation < ActiveRecord::Base
I am not sure what is actually happening but my console tests are not
going very well. Maybe i should just go to bed but…