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

Allow setting a symbol as path in scope on routes #8114

Merged
merged 1 commit into from Nov 22, 2012

Commits on Nov 22, 2012

  1. Allow setting a symbol as path in scope on routes

    Was surprising found that this example doesn't work:
    
      scope :api do
        resources :users
      end
    
    and the right form to use it is:
    
      scope 'api' do
        resources :users
      end
    
    I think this should work similary as `namespace` where both are allowed.
    These two are equivalent:
    
      namespace :api do
        resources :users
      end
    
      namespace 'api' do
        resources :user
      end
    guilleiguaran committed Nov 22, 2012
    Configuration menu
    Copy the full SHA
    0d3a9e8 View commit details
    Browse the repository at this point in the history