Quantcast
Channel: Route not being detected for nested resource in Rails 4 - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Route 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
Browsing latest articles
Browse All 2 View Live




Latest Images