Experienced guys, tell me how to solve the problem: there is a link to delete the answer attached to the question:
link_to 'delete', questions_answers_path(@question, answer), method: :delete When clicking the error of routing falls out:
No route matches [DELETE] "/questions/1434/answers.121" Resources invested:
resources :questions do resources :answers , shallow: true end What could be the problem?
rake routes? - Viktor