title: Rails redirect_to after jquery $.post
body: <p>Why won't my browser go to the new page when I submit?</p>
  
  <p>In my view I have a button that posts data to and action in my controller.</p>
  
  <p><strong>my coffee script:</strong></p>
  
  <pre><code>$.post "/token/create", json
  </code></pre>
  
  <p><strong>TokenController#create</strong></p>
  
  <pre><code>redirect_to root_path, notice: 'Parser was successfully created.' 
  </code></pre>
  
  <p>The <strong>log file</strong> looks like it works:</p>
  
  <pre><code>Started POST "/token/create" for 127.0.0.1 at 2014-10-08 10:27:39 -0400
  Processing by TokenController#create as */*
  ...
  Redirected to http://localhost:3000/
  Completed 302 Found in 37ms (ActiveRecord: 10.0ms)
  
  
  Started GET "/" for 127.0.0.1 at 2014-10-08 10:27:40 -0400
  Processing by VisitorsController#index as */*
  ...
  Completed 200 OK in 2891ms (Views: 2886.6ms | ActiveRecord: 3.0ms)
  </code></pre>
  
  <p>But the page I am on is not changing. How do I make the page go to whatever page I specify in the "redirect_to" line?</p>