Route-aware resource_path? #867
Unanswered
contentfree
asked this question in
Q&A
Replies: 2 comments 1 reply
-
It seems possible that the undocumented |
Beta Was this translation helpful? Give feedback.
0 replies
-
What about adding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a resource – Conversation – that has a polymorphic to a couple other models – Campaign, Subscriber.
My routes look something like:
My ConversationsController contains:
When I visit
/campaigns/1/conversations
and show the list of related conversations, I want to have a link to edit or destroy a Conversation.However,
resource_path
fails withundefined method 'campaign_conversation_path'
because that route is not available (on purpose).How do I get
resource_path
to be aware of the available routes?Beta Was this translation helpful? Give feedback.
All reactions