Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9222641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:52:49+00:00 2026-06-18T03:52:49+00:00

The SO-thread Routing error when updating to Rails 3.2.6 or Rspec 2.11.0 explains the

  • 0

The SO-thread Routing error when updating to Rails 3.2.6 or Rspec 2.11.0 explains the problem pretty well:

With journey >= 1.0.4 (Rails 3.2.11), all routing-related unit tests fail, while the app itself continues to function just fine.

Using Rails 3.2.6 and locking journey to 1.0.3 is a workaround that has become unacceptable.

As an example, here is one of the simplest tests that fail:

routes.rb

ProjRails::Application.routes.draw do

    devise_for :users, :controllers => {:registrations => "users/registrations"}

    resources :users do
      collection do
        get 'current' => 'users#redirect', :as => :current
      end
    end

    # ...

  end
end

users_controller_test.rb

require 'test_helper'

class UsersControllerTest < ActionController::TestCase
  setup do
    @user = FactoryGirl.create(:user)
    @current_user = FactoryGirl.create(:user)
    sign_in @current_user
  end

  # ...

  test "should get new" do
    get :new                    # this is line 25
    assert_response :success
  end

  # ...

end

stacktrace

  8) Error:
test_should_get_new(UsersControllerTest):
ActionController::RoutingError: No route matches {:controller=>"users", :action=>"new"}
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:533:in `raise_routing_error'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:529:in `rescue in generate'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:521:in `generate'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:562:in `generate'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:558:in `generate_extras'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:554:in `extra_keys'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_controller/test_case.rb:151:in `assign_parameters'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_controller/test_case.rb:463:in `process'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_controller/test_case.rb:49:in `process'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/devise-2.1.2/lib/devise/test_helpers.rb:19:in `block in process'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/devise-2.1.2/lib/devise/test_helpers.rb:71:in `catch'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/devise-2.1.2/lib/devise/test_helpers.rb:71:in `_catch_warden'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/devise-2.1.2/lib/devise/test_helpers.rb:19:in `process'
    /home/me/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_controller/test_case.rb:390:in `get'
    /home/me/proj/test/functional/users_controller_test.rb:25:in `block in <class:UsersControllerTest>'

There seem to be quite some related questions on SO – all either unresolved or without a specific solution.

Anyone knows how to resolve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:52:51+00:00Added an answer on June 18, 2026 at 3:52 am

    The section “Testing” of the rails-translate-routes README (https://github.com/francesc/rails-translate-routes#testing) explains that the locale has to be added as a parameter to the action call.

    get :new
    

    has to be changed to something like this:

    get :new, locale: 'en'
    

    As outlined in the readme, a monkey patch exists to avoid the necessity of doing so.

    One question still remains: Why did it work without that addition in Rails 3.2.6 / Journey 1.0.3?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my (Rails 3.2) Test::Unit controller/functional tests, assert_routing is failing with this error: 1)
All my images are inaccessible on production env after upgraded to rails 3.1.3 from
First of all, I'm not sure this is a specific platform error. I'm using
I'm simulating some threading in a Windows Service, and the Thread.Start routine for each
Here it is Create a thread in suspended state. hThrd1 = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)
Thread A: a UI thread where the Gtkmm's message loop runs. Thread B: receives
Thread thread = new Thread(new Runnable() { @Override public void run() { try {
thread.join() will call thread.wait() , but who and when notifies (either with thread.notify() or
first thread i post here. I have been searching here for answers and almost
Main thread of application is doing some work. There also exists a timer, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.