title: Rails: Can't use member outside resource(s) scope (ArgumentError)
body: <p>I have been upgrading to Rails 4, and after running command "rspec ." I am getting the following error: </p>
  
  <pre><code>/Users/lexi87/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-4.0.0.rc1/lib/action_dispatch/routing/mapper.rb:1297:in `member': can't use member outside resource(s) scope (ArgumentError)
  </code></pre>
  
  <p>I have changed my route file a little and still no work. If anyone has run into a similar issue and has a fix please share with me. Thanks in advance!</p>
  
  <pre><code>Dating::Application.routes.draw do
    get 'signup' =&gt; 'users#new'
    get 'login' =&gt; 'sessions#new'
    get 'logout' =&gt; 'sessions#destroy'
    get 'edit' =&gt; 'users#edit'
    get "/profile/:id" =&gt; "users#show"
    get "profile/:id/settings" =&gt; 'users#edit'
    get 'settings/:id' =&gt; 'users#settings'
  
    resources :sessions
    resources :password_resets
    resources :galleries
    resources :photos
    resources :searches
  
    resources :questions do
      resources :answers, only: [:new, :create]
    end
  
    resources :users do  
      member do
        get :settings
    end
  end
  
    root to: 'galleries#index'
  
    resources :users do |user|
      resources :messages do
        collection do
          post 'delete_multiple'
           get 'settings', on: :member  
        end
      end
    end
  </code></pre>