If it is inside a form and that form points to the right action then
that field will be passed in via the params hash
On 26/01/2009, at 19:50, Maite Piedra <rails-mailing-l...@andreas-
s.net> wrote:
>
> Maurício Linhares wrote:
>> Could you please elaborate a little bit more?
>>
>> What do you mean by "saving in the same view"?
>
> I want to catch the value of num_titulos for pass this value to action
> comprueba, but I don´t know how I do it.
>
> td><p><b>numero de titulos a comprar: </b><%= f.text_field
> :num_titulos, :size=> 10 %> </p>
>
> <p><b>Elija el precio al que compro: </b><%= f.text_field
> :precio_compra, {:size=> 10, :onchange =>
> "#{remote_function(:url=>{:controller=> "accions", :action=>
> "comprueba"},:with =>"'valor='+ value")}"} %></p>
> </td>
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---