Polymorphic DRYness? (Acts as Commentable)

I’m using the polymorphic “acts_as_commentable” plugin…

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…


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