Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #1632
Closed
Open
Issue created May 01, 2020 by Administrator@rootContributor

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

  1. Provide custom setting during installation, where custom namespace gets remembered, and used when you run generators

  2. 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)

Assignee
Assign to
Time tracking