radhames brito wrote: > On Fri, Sep 17, 2010 at 7:57 PM, Kelp Kelp <[email protected]> wrote:
> What you are trying yo do is easy, but is not the rigth way , you have > to > have comments belong to commentable and to themself belongs_to :commentable, :polymorphic => true has_many :comments, :dependent => :destroy, :as => :commentable Is this fine inside of my comment.rb model? > then on the commetable show iterate the comments that have no parent . > inside the iteration iterate for their children. What does this accomplish? I find the comments that have children, but what for? -- 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.

