64
rated 0 times
[
68]
[
4]
/ answers: 1 / hits: 15911
/ 11 Years ago, thu, june 27, 2013, 12:00:00
I am trying to make an ajax call to my controller
class PatientRecordController < ApplicationController
def export
....
end
end
In my javascript file i have
$(document).ready(function(){
freezeTopRow($('#dataTable'));
$(#export).click(function(){
$.ajax({url: patient_record/export, type: POST});
});
});
when i inspect element and debug and when i click the export tag on my page. i hit the function however it never gets to the controller
Also I have 2 controllers and 2 views. In my other controller and view I do the same thing and it works
More From » ruby-on-rails