Devise undefined method `` users_url '' for RegistrationsController

Rails 3.2.12 + Design 2.2.3

A NoMethodError occurred at registration # create:

undefined users_url' for #<RegistrationsController:0x007fd04f04b330> actionpack (3.2.12) lib/action_dispatch/routing/polymorphic_routes.rb:129:inpolymorphic_url ' method

the application works fine on rails 3.2.8

+5
source share
1 answer

I had the same problem, it looks like a problem inside Devise (still present in master). The only solution I found was to return to Devise 2.1.2 (I knew that it worked because I used it in another project).

So, to fix this problem, you can put

gem 'devise', '2.1.2'

in your gemfile and then reinstall it using

rails generate devise:install

Hope this helps you while the development team is fixed.

-1
source

All Articles