0

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
TheDude
  • 3,796
  • 2
  • 28
  • 51

1 Answers1

2

Found solution: my layout did not have <%= csrf_meta_tag %>. Found answer in this question

Community
  • 1
  • 1
TheDude
  • 3,796
  • 2
  • 28
  • 51