search for: party_report

Displaying 1 result from an estimated 1 matches for "party_report".

2006 Aug 16
1
Creating a comments system for multiple types of content
...og_entry end And in all the three models I then added a "has_many :comments" statement. This would work, but every comment entry would belong only to one of the three models, so there were many NULL values that seem incorrect to me. And when another content type would be created (like party_report) I would have to update the comment model and it would get more and more xxx_id fields and NULL values. Do you see a better way for doing this? I''m still looking for a "clean" way, but I can''t really find one using the Rails stuff I know. My idea is something like h...