In Rails, you can do link_to "text", resource or url_for resource and Rails will try to guess the path to the resource from the resource’s class and id. Is there any way to do the same by for the edit link?
I could probably have something together to just append "/edit" the the #show path, but that doesn’t seem very pleasant.
Side question: is there a way to get the collection path for a model given the model class?
These call
polymorphic_pathunder the hood, as you already mentioned.