开发者

My delete button stopped working

开发者 https://www.devze.com 2023-03-03 12:23 出处:网络
As I was building the app I get this error. Unknown action The action \'destroy\' could not be found for UsersController

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消