Rails Rendering view from ajax call
<p>I'm trying to render a view after sending params to the controller using ajax. I had to go this route due to the project structure but console returns:</p>

<pre><code>Started POST "/rate" for 127.0.0.1 at 2016-02-17 19:49:42 -0500
Processing by PageController#yourrate as */*
  Rendered page/yourrate.html.erb within layouts/application (0.5ms)
  Rendered Shared_Templates/_navbar.html.erb (0.5ms)
  Rendered Shared_Templates/_footer.html.erb (0.0ms)
Completed 200 OK in 188ms (Views: 187.1ms | ActiveRecord: 0.0ms)
</code></pre>

<p>and my ajax call is:</p>

<pre><code>$.ajax({
  url:"rate",
  type: "post",
  data: "start=" + start + "&amp;finish=" + finish + "&amp;duration=" + duration + "&amp;distance=" + distance,
  success: function(){
    alert("Saved Successfully, distance: " + distance); //just for testing purposes.
  },
  error:function(){
    alert("Error");
  }
});
</code></pre>

<p>and my controller has attributes with params being assigned to them that i'm passing. </p>