I had to spend over 3 hours fixing this bug. To get devise to work for Rails 4.0, the controller needs certain params which I found by looking at a old example.