如何在rails中的calendar_date_select_tag中获取选择/单击的值并将其作为控制器中的参数(格式为yyyy-mm-dd)作为remote_function传递?我试过这样
<%= calendar_date_select_tag "calendar", @time,
:embedded => true,
:onchange => remote_function(
:method => :get,
:url => {:action => "show", :id => @vehicle},
:with => "'mtg_date='+($(this).val()",
:loading => "$('date_spinner').setStyle({visibility: 'visible'});",
:complete => "$('date_spinner').setStyle({visibility: 'hidden'});" ) %>
但它似乎不起作用