catching the value of a time_select in rails
I have a form that has two field (time_selects), the idea is that the user can select the beginning of a call and end time of the call.
I've setup a observe field and works fine:
<%= observe_field "llamada_inicio_4i", :update => "total", :with => "llamada_inicio_4i",
:url => { :controller => "llamadas", :action => "time_tracker"}%>
Sends the value out:
Processing LlamadasController#time_tracker (for 127.0.0.1 at 2010-04-22 17:48:41) [POST] Parameters:"llamada_inicio_4i"=>"23",authenticity_token"=>"+D+yPSVue6yQNfPMuVLkrJn7B9tP6z5S1icKpP开发者_开发百科FTiso="} Rendering template within layouts/llamadas Rendering llamadas/time_tracker Completed in 5ms (View: 3, DB: 0) | 200 OK [http://0.0.0.0/llamadas /time_tracker]
How can i catch this value Parameters:"llamada_inicio_4i"=>"23"
params[:llamada_inicio_4i]
in your controller
精彩评论