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
  • Merge requests
  • !221

Fixes the paths for generated views

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/smart-village-solutions/hf-fixes-generated-view-paths into master Nov 11, 2015
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: 5minpause

Fixes #202 (closed).

Problem:

The documentation correctly states that view generated via rails g administrate:views should live under app/views/administrate/application/. The generatator puts them under app/views/admin/applications/ though.

Solution:

The methods that create the paths need to be adapted.

Nota bene:

While running the tests, the first arg for the generator is empty. When the generator is run inside a project, the first arg is application. This leads to the view paths having applications instead of application. This commit fixes this as well.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/smart-village-solutions/hf-fixes-generated-view-paths