title: AJAX request to Rails Controller
body: <p>To begin, my knowledge of routes and controllers are limited.</p>
  
  <p>I have a controller: </p>
  
  <pre><code>class FeedbackController &lt; ApplicationController
  end
  </code></pre>
  
  <p>I have an AJAX request that captures values. I want to post that data back to the controller but I am unsure what to do with the controller. AJAX REQUEST:</p>
  
  <pre><code>$(document).on("click", "#submit_button", function() {
    var dataVals, data_value_selector, star_value_selector;
    var data_value_selector = $(".tag_clone").attr("data-value");
    var star_value_selector = $('.star_selected').val();
    var dataVals = $('.selectize-input.items.not-full').children('.tag_clone').map(function() {
      return $(this).data("value");
    }).get();
  if (data_value_selector !== void 0 &amp;&amp; (star_value_selector !== void 0)) {
    $.ajax({
      type: "POST",
      url: "/feedback/create",   &lt;-----This is where I'm confused
      data: {
        hashtag_library: dataVals,
        star_value: star_value_selector
      }
    });
  }
  </code></pre>
  
  <p>});</p>
  
  <p>All I want to do with the data right now is console log it with the controller, is that possible?</p>