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 8480899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:25:13+00:00 2026-06-10T19:25:13+00:00

I began troubleshooting my sudden broken routes problem in this SO question: Devise /users/sign_in

  • 0

I began troubleshooting my “sudden” broken routes problem in this SO question:
Devise /users/sign_in redirecting to wrong controller and with help I was able to isolate the issue to the upgrade from journey 1.0.3 to 1.0.4 that occurred when I updated to rails 3.2.7.

As you know, we need to be at rails 3.2.8, to apply important security fixes, but this means I must use journey 1.0.4, which breaks my devise routes. For instance, my custom new_user_session route is welcome#welcome, but it is being decoded to devise/welcome#welcome which does not exist.

Has anybody else run into this love triangle, and if so how did you make journey 1.0.4 play nice with devise?

The routes that are broken (root and devise routs:

    devise_for :users   
    devise_scope :user do
       get "/login"    => "devise/sessions#new"
       get "/register" => "devise/registrations#new"
    end  
    match '/signout/confirm' => 'signouts#confirm'

    root :to => "welcome#welcome"

================================================================

Edit: 2012-09-05

Solution:

I found the offending LOC:

link_to_unless_current( logo_image, { :controller => 'welcome', :action => 'welcome' } )

I changed it to:

link_to_unless_current( logo_image, { :controller => '/welcome', :action => 'welcome' } )

to no avail.

Out of curiosity, I changed it to:

link_to( logo_image, { :controller => '/welcome', :action => 'welcome' } )

and that worked, as did:

link_to( logo_image, { :controller => 'welcome', :action => 'welcome' } )

So the last thing I tried was:

link_to_unless_current( logo_image, root_path )

which worked, and all is now well with the universe.

POSTMORTEM:
My inexperience with the rails documentation led me to infer that while link_to() would accept root_path as a parameter, that link_to_unless_current() would not. It wasn’t until I looked at the source code for the methods, that I found (and should have assumed all along) that link_to_unless_current() is built on top of link_to_unless(), which in turn is built on top of link_to().

Big Thank You to the folks who helped out in this thread and the previous one.

  • 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-10T19:25:14+00:00Added an answer on June 10, 2026 at 7:25 pm

    I had a similar problem with journey 1.0.4 and devise in my little Rails learning project, where loading the devise sign-up page failed with a routing error. I was able to fix the problem by changing the links that were added to the site’s header by views/layouts/application.html.erb and its partials.

    I changed links like this:

    <%= link_to 'Home', {:controller=>'welcome', :action=>'index'} %>
    

    to:

    <%= link_to 'Home', {:controller=>'/welcome', :action=>'index'} %>
    

    and routing started to work.

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

Sidebar

Related Questions

Began restructuring my Backbone app referencing this article by Bocoup: http://weblog.bocoup.com/organizing-your-backbone-js-application-with-modules I'm having trouble
First of all I began with the code below in my view controller but
I recently began exploring Scapy. A wonderful tool indeed! I have a problem... When
I am troubleshooting a problem with existing code that always worked fine (it's the
This seems to be a problem a lot of people have run into! Link
I began reading the book Code Complete 2nd edition, but stopped reading when I
I began writing an app using declarative_authorization ( http://github.com/stffn/declarative_authorization ) but I'm now wondering
I began learning Python a few days ago, and i was wondering about a
I began studying Java Regular Expression recently and I found some really intersting task.For
Only began using Haskell a couple of weeks ago - I am attempting 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.