Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes generator produces ill-indented code #505

Closed
fwolfst opened this issue Mar 7, 2016 · 3 comments
Closed

Routes generator produces ill-indented code #505

fwolfst opened this issue Mar 7, 2016 · 3 comments

Comments

@fwolfst
Copy link
Contributor

fwolfst commented Mar 7, 2016

Currently (0.1.4) administrate creates routes like the following (if more than one resource is found):

  namespace :admin do
    resources :departments
resources :services
resources :service_types
resources :usages

    root to: "departments#index"
  end

I expect it to create well indented code like

  namespace :admin do
    resources :departments
    resources :services
    resources :service_types
    resources :usages

    root to: "departments#index"
  end
fwolfst added a commit to fwolfst/administrate that referenced this issue Mar 7, 2016
@carlosramireziii
Copy link
Collaborator

This still seems to be an issue in 0.4.0. Anyone want to take a stab at it?

@fwolfst
Copy link
Contributor Author

fwolfst commented Mar 7, 2017

I am not sure anymore, but my changes might just have fixed the issue (dont know why I didnt file a PR though). I will not have the time to look into it soon.

@nickcharlton
Copy link
Member

I think this was fixed in #506, so I'm going to close this. If it's not, please reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants