how to get selected/clicked value in calendar_date_select_tagin rails -
how selected/clicked value in calendar_date_select_tag in rails , pass params in controller (as format yyyy-mm-dd)as remote_function? have tried this
<%= 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'});" ) %>
but seems not working
write following in environment.rb/application.rb depending on rails version
calendardateselect.format = :american
ref this other formats
Comments
Post a Comment