Hi,
I have these Models in my app
User
Request
Requesttargetuser

Now User has the associations
has_many :requests

And the Request has the association
belongs_to :user

ie.A user can post a request.

But the request should be answered by certain users ie.I have to add
certain other users to reply for the request.

For that only I have this model called Requesttargetuser
I know i can use
in User model
has_many :requesttargetuser
has_many :requests :through=> :requesttargetuser

But my question is that can i have both has_many :requests and has_many
:requests :through => :requesttargetuser in the User table.Or else wat
will be the correct way to address this situation.

Thanks in advance
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to