Answer by usha for Route not being detected for nested resource in Rails 4
For destroy to work,Change the line in your route.rb(notice :destroy instead of :delete)resources :assets, only: [:new, :create, :destroy]
View ArticleRoute not being detected for nested resource in Rails 4
# routes.rbresources :assets, only: [:new, :create, :delete]# asset.rbclass Asset < ActiveRecord::Base belongs_to :postend# rake routes Prefix Verb URI Pattern Controller#Actionpost_comments POST...
View Article
More Pages to Explore .....