The problem is this:
Here''s somewhat what I''m trying to get working:
class Membership < ActiveRecord::Base
end
class Plan < ActiveRecord::Base
end
class MultiUser < Plan
has_many :users
end
class SingleUser < Plan
has_one :user
end
class User < ActiveRecord::Base
end
and then in my user table I would have a membership_id but no
plan_id...
I dont know quite much how to explain this better than by what I have
written above, ask questions if unclear. Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
web.dizign-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-18 02:59 UTC
Re: has_one_or_many
Nevermind, realized my own stupidity. Oops On May 17, 6:36 pm, "web.diz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <web.diz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The problem is this: > > Here''s somewhat what I''m trying to get working: > > class Membership < ActiveRecord::Base > end > class Plan < ActiveRecord::Base > end > class MultiUser < Plan > has_many :users > end > > class SingleUser < Plan > has_one :user > end > > class User < ActiveRecord::Base > end > > and then in my user table I would have a membership_id but no > plan_id... > > I dont know quite much how to explain this better than by what I have > written above, ask questions if unclear. Thank you--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---