catching the value of a time_select in rails.
Posted
by ZeroSoul13
on Stack Overflow
See other posts from Stack Overflow
or by ZeroSoul13
Published on 2010-04-23T01:07:09Z
Indexed on
2010/04/23
1:13 UTC
Read the original article
Hit count: 214
ruby-on-rails
Hello,
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+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]
How can i catch this value Parameters:"llamada_inicio_4i"=>"23"
© Stack Overflow or respective owner