problem in text_field

Maite Piedra
Fri, 16 Jan 2009 13:05:06 -0000

hello everybody

I have this text_field

<%= f.text_field :precio_compra, {:size=> 10, :onchange =>
"#{remote_function(:url=>{:controller=> "accions",
:action=>
"comprueba"},:with => "''valor=''+
''accion[precio_compra]''.value")}"}
%>

but in comprueba funtion i have this

=>
{"authenticity_token"=>"ea3bfcd9b5acd6ffbaf6d4b57850f58fd0dcf734",
"valor"=>"undefined",
"action"=>"comprueba",
"controller"=>"accions"}
>>

valor=> "undefine"

How I pass the text_field value?????

thanks for all
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---