hello everybody How I save de value of text_fiel in the same view <%= f.text_field :precio_compra, :size=> 10 %> How do it??? 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 -~----------~----~----~----~------~----~------~--~---
Could you please elaborate a little bit more? What do you mean by "saving in the same view"? - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Sun, Jan 25, 2009 at 4:16 PM, Maite Piedra <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > hello everybody > > How I save de value of text_fiel in the same view > > <%= f.text_field :precio_compra, :size=> 10 %> > > How do it??? > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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-list@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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ryan Bigg wrote:> If it is inside a form and that form points to the right action then > that field will be passed in via the params hashok it is inside a form but I want before to click on the bottom submit I want to catch the value to pass for :onchange :onchange => "#{remote_function(:url=>{:controller=> "accions", :action=> "comprueba"} thanks again -- 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 -~----------~----~----~----~------~----~------~--~---
Hello list I have the same problem yet I dont catch value of text_field in the same erb.html file. any idea??? thanks again. -- 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 -~----------~----~----~----~------~----~------~--~---