As I was building the app I get this error.
Unknown action
The action 'destroy' could not be found for UsersController
The problem I have is that I do have a destroy method in my users controller and the button was working just fine. It just decided to stop working all of a sudden.
I started coding in a mai开发者_开发知识库ler and that is when it stopped working. Let me know what code you would like to see.
Appreciate the help.
Suppose that web server restart didnt help... Maybe you should check your routes... Do you have
resources :users
in routes.rb file? If so, could you show us the whole content of that file?
精彩评论