How to update two f.select from 2 different tables on ruby on rails
Posted
by Zerosoul13
on Stack Overflow
See other posts from Stack Overflow
or by Zerosoul13
Published on 2010-04-15T22:42:19Z
Indexed on
2010/04/15
22:43 UTC
Read the original article
Hit count: 197
ruby-on-rails
Hello,
I just started working on a Ruby On Rails project and i got to the point where i need to see the contacts of a company.
They should appear once the company is selected..
<%= observe_field :empresa_id, :url=>{:action => "get_contactos", :controller=> :contactos, :updatewith =>:empresa_id} %>
but nothing happens, i don't see even a error on the script/server.
Can someone point me in the right direction?
http://nealenssle.com/blog/2007/04/12/how-to-dynamically-update-form-elements-in-rails-using-ajax/
I see on the link that a guy did the exact same thing i need but did not post any info.
Cheers.
© Stack Overflow or respective owner