title: Rails parameters contain backslashes
body: <p>I am currently working with <code>button_tag</code> to create a remote styled answer submission quiz. When pressing this button, instead of posting the new record, it is throwing an error.</p>
  
  <p><code>ActiveRecord::RecordNotFound (Couldn't find Answer without an ID):</code></p>
  
  <p>When looking at the server logs I see it is trying to work with these params when trying to post <code>Parameters: {"{\"answer_id\":59}"=&gt;nil, "id"=&gt;"15"}</code></p>
  
  <p>What I am looking, or expecting to see is this. 
  <code>Parameters: {"answer_id"=&gt;"59", "id"=&gt;"15"}</code></p>
  
  <p>Here is the <code>button_tag</code> I am using.</p>
  
  <pre><code>&lt;% @question.answers.each do |answer| %&gt;
    &lt;%= button_tag "#{answer.answer.titleize}", class: 'btn btn-block btn-lg btn-primary', data: {
      remote: true,
      method: :post,
      url:    answer_question_path(@question),
      params: { answer_id: answer.id }
    } %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Here is my response controller which is responsible for submitting the POST request.</p>
  
  <pre><code>class ResponsesController &lt; ApplicationController
      def answer
          question = Question.find(params[:id])
          answer   = question.answers.find(params[:answer_id])
          response = question.responses.find_or_initialize_by(user: current_user)
  
          if response.update(answer: answer)
              head :ok
          else
              puts 'Something went wrong chief' 
          end
      end
  
      private
  
      def responses_params
          params.require(:response).permit(:user_id, :question_id, :answer_id)
      end
  end
  </code></pre>
  
  <p>I have tried using <code>to_json</code> on the parameter with no success and have not been able to find any solution elsewhere on SO or other forums. Any ideas? </p>