title: Devise after_sign_in_path_for works, but redirection doesn't happen
body: <p>Devise doesn't redirect to the url provided by <code>after_sign_in_path_for</code>.
  It actually calls my custom <code>after_sign_in_path_for</code> instead. It calculates the url, that I expect it to calculate, but then redirection doesn't happen. It remains at the <code>sign_in</code> page, but the actual signing in does not take place.</p>
  
  <p>I've been trying several versions of devise:</p>
  
  <pre><code>gem 'devise'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>gem 'devise', :git =&gt; 'git://github.com/plataformatec/devise.git'
  </code></pre>
  
  <p>Same result.</p>
  
  <p>My custom <code>after_sign_in_path_for</code></p>
  
  <pre><code>def after_sign_in_path_for(resource)
      str = stored_location_for(resource) || stored_location || root_path
      debugger
      str
  end
  
  def stored_location
      session.delete(:return_to)
  end
  
  def store_location
      session[:return_to] = request.fullpath
  end
  </code></pre>
  
  <p>Is being called, it gives proper url, gives <code>str</code> exactly as I expect it to give.
  Debugger stops at this point...</p>
  
  <p>But after <code>cont</code> the page stays at <code>sign_in</code>, while however the signing in takes place.</p>
  
  <p>I believe it is not my code issue. It might be a Devise issue. Can anyone, who has it <strong>working</strong>, share with me the exact version of Devise, which works with you.</p>