Hello,
I'm doing this with Ajax and it works pretty good. Observer on select
with action which changes ohter things in form. But must not be the
best solution for you. Second is to use some heavy javascript (like
http://www.pengoworks.com/qforms/docs/examples/advanced.htm) , but it
could lead to very big pages (many customers objects => many address,
all in javascript arrays).
On 9/6/05, Andre Parmeggiani <aap@howto.com.br>
wrote:>
> Hi all,
>
> Does anyone know the RoR way to deal with input form updates?
>
> I'm using Object.find and collection_select to fill select boxes BUT
> how to fill a second one based on the first one selection ?
>
> For instance, how to fill an Address select box based on the selection
> of a Customer previously? (assuming that Customer has_many
> Addresses)
>
> Thanks for any clue,
> Best regards,
> Andre
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails