jQuery AJAX request (Rails 3) gets redirected and returns empty message body!
- by elsurudo
I'm trying to do a manual jQuery AJAX request the following way:
$("#user_plan_id").change(function() {
$("#plan_container").load('/plans/' + this.value);
});
I have the "rails.js" file included in my header, and a "<%= csrf_meta_tag %".
I see from my log that the request IS getting to the server (although without the authenticity…