title: Redirect not working in Ruby on Rails 2.2.2
body: <p>I have this code</p>
  
  <pre><code>if (....)
     ....  
  else
     flash[:error] = 'Error'
     redirect_to({ :controller =&gt; :home })
  end
  </code></pre>
  
  <p>Now the flash error message works, but the redirect does not.</p>
  
  <p>The server log shows the following:</p>
  
  <pre><code>Redirected to controllerhome
  </code></pre>
  
  <p>but there is no redirect.</p>
  
  <p>Is there something I am missing or doing wrong?</p>
  
  <p>EDIT</p>
  
  <p>as requested, output of     rake routes | grep home</p>
  
  <pre><code>root/ {:controller =&gt; "home", :action =&gt; "index"}
  </code></pre>
  
  <p>I have tried the code with</p>
  
  <pre><code>:action =&gt; index
  </code></pre>
  
  <p>added, but no change</p>