Conrad Taylor wrote:
> On Sat, Feb 28, 2009 at 6:06 AM, Joe Canares <
> [email protected]> wrote:
> 

> Hi, please explain what you're trying to do.  It's rare that you'll have 
> two
> belongs_to declaration.  However, I'm sure this may be possible in some
> use cases.

I'm trying to append files to either a "post" or a "message". Files 
belong to either a post or a message.

So post-model:

has_many :files

message-model:

has_many :files

file-model:

belongs_to :post
belongs_to :message

I'm trying to add the file-functionality to the existing 
post/message-structure.
-- 
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