title: Ruby on rails redirect_to won't redirect after save, just stays on page (but does save)
body: <p>Here is my code:</p>
  
  <pre><code>class UsersController &lt; ApplicationController
  
    def new
      @user = User.new
    end
  
     def create
        @user = User.new(params[:user])     
        respond_to do |format|
        if @user.save
        format.html { redirect_to :success }  
  
        else
  
        format.html { render :new }  
        format.js   { render :form_errors }
        end
      end
    end
  
  end
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;div id="joinFormContainer"&gt; 
  &lt;%= form_for @user, :remote =&gt; true do |f| %&gt;
        &lt;div id="firstNameField"&gt;
         &lt;%= f.text_field :first_name, :placeholder =&gt; "First Name" %&gt;
        &lt;/div&gt;
        &lt;div id="lastNameField"&gt;
     &lt;%= f.text_field :last_name, :placeholder =&gt; "Last Name" %&gt; 
        &lt;/div&gt;
        &lt;div id="emailFieldJoin"&gt;
     &lt;%= f.text_field :email, :placeholder =&gt; "Email"  %&gt;
        &lt;/div&gt;
  
        &lt;div id="passwordFieldJoin"&gt;
     &lt;%= f.password_field :password, :placeholder =&gt; "Password"  %&gt;
        &lt;/div&gt;
        &lt;div id="usernameField"&gt;
     &lt;%= f.text_field :username, :placeholder =&gt; "Username"  %&gt;
        &lt;/div&gt;
  
        &lt;div id="joinButton"&gt;      &lt;%= f.submit 'Join Us', :id =&gt;"join_submit" %&gt; &lt;/div&gt; 
      &lt;/div&gt;&lt;% end %&gt;
     &lt;div id="error_explanation"&gt;     
  
  &lt;%= @user.errors.full_messages.first if @user.errors.any? %&gt;
  
   &lt;/div&gt;
    &lt;/div&gt;
    &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>log:</p>
  
  <pre><code>Binary data inserted for `string` type on column `encrypted_password`
  Binary data inserted for `string` type on column `password_salt`
    SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "password_salt", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?)  [["created_at", Wed, 26 Oct 2011 23:40:03 UTC +00:00], ["email", "fdfdfdfdfdffdf@sdsd.sdd"], ["encrypted_password", "$2a$10$vFOoxHfvc3N2jNPMgx3iN.cNrxENvO5qAaSTaUa5itmzb0uADV9ZS"], ["first_name", "fddffdf"], ["last_name", "dffdffddff"], ["password_salt", "$2a$10$vFOoxHfvc3N2jNPMgx3iN."], ["updated_at", Wed, 26 Oct 2011 23:40:03 UTC +00:00], ["username", "fdgdgddgfdfd"]]
  Redirected to http://localhost:3000/success
  Completed 302 Found in 87ms
  
  
  Started GET "/success" for 127.0.0.1 at 2011-10-27 00:40:03 +0100
    Processing by UsersController#success as JS
  Rendered users/success.html.erb within layouts/application (0.0ms)
  Completed 200 OK in 10ms (Views: 10.1ms | ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>After save the user isn't redirected to temporary success page. Am I missing something?
  I also tried redirect_to 'success' </p>