title: no route matches error on route in rake routes
body: <p>I'm testing a RESTful api in rails using rspec.</p>
  
  <p>My request looks like this:</p>
  
  <pre><code>before(:each) do
      @user = FactoryGirl.create(:user)
      sign_in(@user)
  end
  
  it "returns a 200 code when a user checks a valid token" do
    get "/api/v1/users/#{@user.id}/token_check", token: @user.authentication_token
    expect(response.code).to eql(200)
  end
  </code></pre>
  
  <p>when i run the testing suite, I receive the error:</p>
  
  <pre><code>Failure/Error: get "/api/v1/users/#{@user.id}/token_check", token: @user.authentication_token
       ActionController::UrlGenerationError:
         No route matches {:action=&gt;"/api/v1/users/1/token_check", :controller=&gt;"api/v1/users", :token=&gt;"6fgswkHwWXrcyDQNJVBZ"}
       # ./spec/controllers/api/v1/users_controller_spec.rb:32:in `block (2 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>However, I can see the route for this action in rake routes:</p>
  
  <pre><code> api_v1_user_token_check GET    /api/v1/users/:user_id/token_check(.:format) api/v1/users#token_check {:format=&gt;:son}
  </code></pre>
  
  <p>I match this to my users_controller#token_check. Here is my controller and action:</p>
  
  <pre><code>def token_check
          render json: {
              result: ['Your authentication token is valid'],
          }, status: 200
      end
  </code></pre>