Our app scopes our user model to Users::User. How can we configure API Guard's routes to work with this? (We are also using Devise.)
This seems to be the only combination of for:, as:, and path: options that doesn't raise an error when starting the server. But when POSTing to /api/users/sign_in I get the following error.
NameError (`@api_guard_Users::User' is not allowed as an instance variable name)
# API Guard Routes
scope path: :api do
api_guard_routes for: "Users::User", as: "users", path: "users", controller: {
authentication: "users/authentication"
}
end
# Devise / Auth Routes
devise_for :users, class_name: "Users::User", controllers: {
sessions: "users/sessions",
registrations: "users/registrations",
masquerades: "users/admin/masquerades"
}
I'm assuming (hoping!) this can be fixed in the route configuration. Any help would be greatly appreciated!
Our app scopes our user model to
Users::User. How can we configure API Guard's routes to work with this? (We are also using Devise.)This seems to be the only combination of
for:,as:, andpath:options that doesn't raise an error when starting the server. But when POSTing to/api/users/sign_inI get the following error.I'm assuming (hoping!) this can be fixed in the route configuration. Any help would be greatly appreciated!