Pass javascript date variable to rails controller as params

I have an application where jquery fullcalendar is implemented. On day
click I need to pass the selected date as params to rails controller.
When I alert the date inside dayclick function, I am getting the date in
the format of “Tue Oct 30 2012 12:40:20 GMT+0530 (IST)”… But when I
pass as params in jquery ajax to rails controller, it is passing blank.
How do I get it in rails controller successfully. Please find my code
for dayclick below.

dayClick: function(date, allDay, jsEvent, view) {
          var date = $('#calendar').fullCalendar('getDate');
                    date_selected: date
                  {  $('.active_projects').html(data);
                    //alert("Data: " + data + "\nStatus: " +

if (allDay) {
alert('Clicked on the entire day: ’ + date);

I don’t see any problems with your jQuery code. Are you sure you are
the correct route ? If you are sending this form to a default update
action, the path correct path is not that one.
Luis Va**sconcellos | *Web D. at DTM

twitter: @vasconcelloslf
mobile: 55 21 95100576

2012/10/30 ruby rails [email protected]