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

  • Home
  • SEARCH
  • 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 8801631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:53:04+00:00 2026-06-14T00:53:04+00:00

I recently upgraded by current app to Rails 3.2.8 and can’t get a few

  • 0

I recently upgraded by current app to Rails 3.2.8 and can’t get a few tests to pass. I made a helper method that merges certain hashes with the params hash and creates a link to the current page. I used technique I saw on: link_to the current page plus/merged with a param.

Here is a stripped down version:

def simple_link
  link_to "Page", params.merge(:c => nil)
end

Then I would test it with something like:

describe "simple_link" do
  it { simple_link.should == "<a href=\"/assets\">Page</a>" }
end

Which was passing in 3.2.6.

However, now I receive the rspec error No route matches {:c=>nil}. Either Rails, rspec, or capybara is thinking the hash is the route. If I add a proper route like: users_path, then url_for seems to pick up the hash. Testing on a browser, everything works fine, no errors. Am I doing something wrong, was something changed in 3.2.8 or is this a bug?

  • 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-14T00:53:05+00:00Added an answer on June 14, 2026 at 12:53 am

    Upgrading rails also upgrades the journey routing gem from 1.0.3 to 1.0.4. In that upgrade, there was a change to how routing treats constraints:

    1.0.4 fixed a regression from Rails 3.1 where the router would return a route even if the constraints a user passed in didn’t match anything.

    Since you mention (in the comments) that downgrading journey to 1.0.3 fixes the problem, this change in journey is almost certainly the cause of the problem. Have a look at these github issues to find possible solutions:

    • 1.0.3 -> 1.0.4 update breaks url_for in tests
    • ActionController::RoutingError in controller specs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently upgraded our rails app from version 3.0.3 to 3.1.0. The application runs
EDIT: Using simpler code. I have a blackberry app that until recently (I upgraded
I recently upgraded to Lion and I am trying to install Rails. I used
I recently 'upgraded' my app to the cedar platform on Heroku. By default, I
I recently upgraded to the latest version of XCode, but apps made with this
I recently upgraded a .NET 2.0 app to .NET 4 and everything works great.
I've got a problem with my universal app that I just recently ported to
Recently upgraded to Fancybox v2 and can't figure out how to keep Fancybox open
I am current running EF 4.3.1 which was recently upgraded from 4.1, using a
I recently upgraded a project from Django 1.3 to 1.4, and that seems to

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.