Open siba2893 opened 2 years ago
Hi @siba2893 , try to add in routes:
Trestle::Engine.routes.draw do
resources :administrators, only: :new, module: "auth/administrators_admin", controller: "admin"
end
Hi @maszuDEV I solved it actually it was related to the config.api_only = true
that I had on my app. when I turned that off it started working properly.
Hi @maszuDEV I solved it actually it was related to the
config.api_only = true
that I had on my app. when I turned that off it started working properly
@siba2893 so you resign from API only mode? I understood from your description that you cared about it.
Well because I created the app as API Only at the very beginning the project doesn't have anything related to it, so i got no problem with that, just need to add the config to prevent the generators from creating helpers or views.
I just installed Trestle-auth and did the simple install without defining any model (defaulting to administrator), but whenever I log in it simply throws me to an error page.
My project is a rails 7 api only.
But I had installed the trestle gem and trestle-auth showing the login on the "/admin" route.