I have a has_many :through relationship where feed has_many lists.
Routes
resources :feeds do
member do
resources :feed_lists
end
end
Route I'm trying to hit:
feed_list
DELETE /feeds/:id/feed_lists/:id(.:format) feed_lists#destroy
Then when looping through @feed.lists I get incorrect paths:
feed_list_path(list, @feed) = "/feeds/41/feed_lists/41"
feed_list_path(@feed, list) = "/feeds/5/feed_lists/5"
feed_list_path [@feed, list] = "/feeds/41/5/feed_lists/41/5
Obviously what I want is
feed_list_path(list, @feed) = "/feeds/41/feed_lists/5"
Is this not possible with a has_many :through relationship ?