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

concern create duplicate routes for nested resources #9

Open
ryanhertz opened this issue Oct 28, 2015 · 0 comments
Open

concern create duplicate routes for nested resources #9

ryanhertz opened this issue Oct 28, 2015 · 0 comments

Comments

@ryanhertz
Copy link

If the concern is used on a nested resource, duplicate routes are generated.

    concern :foo do
      get 'bar'
    end

    resources :one do
      resources :two, concerns: :foo
    end

The above produces this:

one_two_bar GET  (/:portal_slug)/one/:one_id/two/:two_id/bar(.:format)  two#bar {:concerns=>:foo}
            GET  (/:portal_slug)/one/:one_id/two/:two_id/bar(.:format)  two#bar {:concerns=>:foo}
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

1 participant