Polymorphic DRYness? (Acts as Commentable)

I’m using the polymorphic “acts_as_commentable” plugin…
http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/
http://www.juixe.com/techknow/index.php/2006/07/09/comments-on-acts-as-commentable/

But I’m new to RoR and don’t understand how to avoid repeating myself.

Is there a way to create a single “comment_form” partial and action to
handle any model type/id? The second link above assumes an @model
model rather than being able to handle any model.

Any insight would be greatly appreciated. Thanks.

Nevermind, this group already answered my question here…
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/51ac9daee6679a86/fafcf7c119779acb?lnk=gst&q=comments+controller#fafcf7c119779acb

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs