title: Devise /users/sign_in redirecting to wrong controller
body: <p>Vitals:</p>
  
  <ul>
  <li>ruby 1.9.3p194 (2012-04-20 revision 35410)</li>
  <li>[i686-linux] Rails 3.2.7</li>
  <li>Devise 2.1.2</li>
  </ul>
  
  <p>The GET /users/sign_in is attempting to redirect to the wrong controller. It has stopped redirecting to wecome#welcome (which works), ans is now redirecting to devise/welcome#welcome, which does not exist and causes a 500 error on the redirect with the following error logged:</p>
  
  <pre>
  ActionController::RoutingError (No route matches {:controller=>"devise/welcome", :action=>"welcome"}):
  </pre>
  
  <p>This started recently, and appears to have been caused by something in a series of gem updates. It used to work perfectly.</p>
  
  <p>Does anybody have any idea why this would start failing ( e.i. which update of which gem) or what I can do about it?</p>
  
  <p><strong>Edits:</strong></p>
  
  <p>Here's the root route from routes.rb:</p>
  
  <pre><code>root :to =&gt; "welcome#welcome"
  </code></pre>
  
  <p>I rolled back to my previous deployment, and the app works again. The deployment was prior to rails 3.2.7.</p>
  
  <p>Gemfile:</p>
  
  <pre><code>source 'http://rubygems.org'
  
  gem 'rails', '~&gt; 3.2.1'
  gem 'rake'
  
  # Bundle edge Rails instead:
  # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git'
  
  gem 'pg'
  
  gem 'devise', '~&gt; 2.1.0'
  gem 'devise-encryptable', '~&gt; 0.1.1'
  gem 'devise_invitable', '~&gt; 1.0.0'
  
  gem 'haml', "~&gt; 3.1.6"
  gem "rdiscount", "~&gt; 1.6.8"
  gem 'markaby'
  
  gem 'foreigner', "~&gt; 1.1.5"
  
  gem 'ancestry'
  gem 'acts_as_list'
  
  gem 'dynamic_form'
  gem 'friendly_id', "~&gt; 4.0.0"
  
  
  gem 'net-ssh', :git =&gt; 'git://github.com/nessche/net-ssh.git'
  
  
  group :assets do
    gem 'sass-rails',   "~&gt; 3.2.3"
    gem 'coffee-rails', "~&gt; 3.2.1"
    gem 'uglifier', "~&gt; 1.2.3"
  end
  
  gem 'therubyracer', "~&gt; 0.10.1"
  gem 'jquery-rails', "~&gt; 2.0.1"
  
  gem 'newrelic_rpm', "~&gt; 3.3.1"
  
  gem "marginalia", "~&gt; 1.1.0"
  
  
  group :development do
    gem 'capistrano', "~&gt; 2.12.0"
    gem 'rvm-capistrano'
  #  gem "mail_view", "~&gt; 1.0.1", :git =&gt; 'https://github.com/37signals/mail_view.git'
  #  gem 'rails_admin'
    gem 'rails-footnotes', '&gt;= 3.7.5.rc4'
    gem 'annotate', '~&gt; 2.4.0'
  end
  
  # Bundle the extra gems:
  # gem 'bj'
  # gem 'nokogiri'
  # gem 'sqlite3-ruby', :require =&gt; 'sqlite3'
  # gem 'aws-s3', :require =&gt; 'aws/s3'
  
  # Bundle gems for the local environment. Make sure to
  # put test-only gems in this group so their generators
  # and rake tasks are available in development mode:
   group :development, :test do
     gem 'webrat'
     gem 'rspec'
     gem 'cucumber'
     gem 'gherkin'
     gem 'spork'
     gem 'spin'
     gem 'capybara'
     gem 'sqlite3'
     gem 'nifty-generators'
     gem 'mocha'
   end
  </code></pre>
  
  <p><em>EDIT</em>: 2012-08-27 -<br>
  devise 2.1.2 + rails 3.2.6 + journey 1.0.3 = works.<br>
  devise 2.1.2 + rails 3.2.6 + journey 1.0.4 = fails. </p>
  
  <p>devise 2.1.2 + rails 3.2.7 + journey 1.0.4 = fails.<br>
  devise 2.1.2 + rails 3.2.8 + journey 1.0.4 = fails.</p>
  
  <p>Rails 3.2.7 &amp; 3.2.8, which are security releases require journey 1.0.4. This leaves me pretty well stuck until I can either get a fix for journey.</p>