spree / spree_auth_devise

Provides authentication (user accounts, login & signup) for @spree by using Devise
https://spreecommerce.org
BSD 3-Clause "New" or "Revised" License
139 stars 494 forks source link

Uninitialized constant Spree::UsersController with spree legacy frontend #566

Closed Kulgar closed 2 years ago

Kulgar commented 2 years ago

Hello,

I get an "uninitialized constant Spree::UsersController" error when accessing /account from a spree app using spree legacy frontend. I'm using Spree 4.4, latest Spree auth devise (4.4.2) and latest spree legacy (4.4)

It's weird and I can't figure out why the users_controller from spree_auth_devise isn't loaded properly.

Any ideas?

It does work if I copy/paste the entire controller and create the app/controllers/spree/users_controller.rb file in my project

Thanks!

Kulgar commented 2 years ago

Actually, it seems to do the same bug for all controllers... why is that?

Kulgar commented 2 years ago

Ok, just found the problem ^^'

We have to put the gem "spree_auth_devise" after the gem "spree_frontend" in the Gemfile. I already had the gem spree_backend before spree_auth_devise, so... was a bit hard to understand what was going on.

Closing the issue ^^