我有一个包含两个字段(time_selects)的表单,其想法是用户可以选择呼叫的开始和呼叫的结束时间。
我已经设置了一个观察区域并且工作正常:
<%= observe_field "llamada_inicio_4i", :update => "total", :with => "llamada_inicio_4i",
:url => { :controller => "llamadas", :action => "time_tracker"}%>
发送价值:
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+yPSVue6yQNfPMuVLkrJn7B9tP6z5S1icKpPFTiso="} 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]
如何捕捉此值参数:“llamada_inicio_4i”=&gt;“23”
答案 0 :(得分:1)
PARAMS [:llamada_inicio_4i]
控制器中的