Pessoal, estou com o erro: "NoMethodError in CommentsController#destroy"
undefined method `job' for #
app/controllers/comments_controller.rb:17:in `destroy'
No routes.rb: delete "comments/:id", to: "comments#destroy", as: :comment
No comments_controller.rb: def destroy @comment = Comment.find(params[:id]) @comment.destroy redirect_to @comment.job, notice: "Comment destroyed with success" end Minha versão é 3.2.13, da lição #6
Obrigado!