Hey guys,
I have comments as a polymorphic model
its attached to posts, reviews, etc.
I also have an action in comments, called test for example
I have my routes setup, so test_post_comment_path works (to call the test action in the comments controller)
the problem is, in my partial view, I want that route to be able to change, based on the current action, ie. its test_post_comment_path when on a post and test_review_comment_path when on a review
any ideas?