Hey guys! Now one with Devise. I must have forgo...
# avo-2
m
Hey guys! Now one with Devise. I must have forgotten to configure something. I created the User model inside a namespace, something like app/models/access/user.rb. Authentication works great, the e-mail of user appears at the bottom of Avo interface, but the link to end the session is simply gone. Does anyone know what I forgot to configure?
l
Try to set the current_user_method in the initializer
Or the sign_out_path
m
The current_user_method was configured.
How a configure sign_out_pat with my routes below
destroy_usuario_session DELETE /usuarios/sign_out(.:format) devise/sessions#destroy
My config route is:
Rails.application.routes.draw do devise_for :usuarios, class_name: "Acessos::Usuario" authenticate :usuario do mount Avo::Engine, at: Avo.configuration.root_path end # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Defines the root path route ("/") # root "articles#index" root to: redirect("/avo") end
l
Can you please open a GitHub issue please?
With the code and everything please
m
Thank again, Adrian
Issue opened
l
Thanks @microscopic-dream-82397. I'm away with real-life engagements for a few days but I'll try to chime in. If not, I'm back at it on Monday
4 Views