When installed to custom namespace, view generators keep using "/admin"
Created by: inem
I am supporting project where administrate plugged to "console" namespace instead of "admin".
Problem
Every time I generate custom views in this project, they are generated into the default folder
rails generate administrate:views:index Modelname
create app/views/admin/modelnames/index.html.erb
create app/views/admin/modelnames/_collection.html.erb
Potential solutions
-
Provide custom setting during installation, where custom namespace gets remembered, and used when you run generators
-
Support "--namespace=console" option for view generators the same way it works during installation:
"rails generate administrate:views:index Modelname --namespace=console"
Versions
rails (6.0.2) administrate (0.12.0)