Reputation: 3952
I am running into an issue when I delete any resource. Before I delete something, current_user returns the correct User; however, after I delete something, current_user returns nill. I tried this with multiple resources and it does the same thing. Has anyone ever encountered a similar problem?
EDIT: I also created a UsersController to allow me to manage the users. My routes file contains:
resources :users
devise_for :users
Upvotes: 0
Views: 95
Reputation: 3952
Found solution: my layout did not have <%= csrf_meta_tag %>
. Found answer in this question
Upvotes: 2