You can call ajax request on change or on lost focus of the code field For send ajax request you can do observe_field or use remote_function
- Chirag Shah http://blogofchirag.blogspot.com/ Angelo Cordova wrote in post #1013448: > Hello everyone > > I have the following problem. > > I have a model name "products" > > Products > -id (by default) > -code > -name > -description > -quantity > > and in one of the forms I need that if I write the code, the others > fields be filled automatically with the right value. > > How can I do this?? any gem?? > > Hope you can help me > > Thanks -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.