# ActiveScaffold :form\_ui select

**URL:** <https://www.ruby-forum.com/t/activescaffold-form-ui-select/147817>\
**Category:** Rails\
**Created:** [September 5, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/activescaffold-form-ui-select/147817 "2008-09-05T17:14:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![datakix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@datakix](https://www.ruby-forum.com/u/datakix)\
**Post date:** [September 5, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/activescaffold-form-ui-select/147817/1 "2008-09-05T17:14:13Z")

</div>

If I have two :form\_ui select boxes, how can I make the first select  
box reload the values in the second? For example,

—\> [Car Maker]  
-------\> [Car Model]

When I change a value in the ‘Car Maker’ select box, I want to display  
values in the ‘Car Model’ select box that only belong\_to that Car  
Maker.

I read another post in this group that recommended using  
options\_for\_association\_conditions. I read the documentation but the  
sample code doesn’t fit my needs.

Please help.

Thanks in advance,  
Bill

btw - A small code sample would make my day 🙂

---

<div class="post-metadata">

**Author:** ![datakix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@datakix](https://www.ruby-forum.com/u/datakix)\
**Post date:** [October 12, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/activescaffold-form-ui-select/147817/2 "2008-10-12T14:07:08Z")

</div>

I am need to do something exactly like this too. Any solutions out  
there. My “basic” Rails/Ruby knowledge is not getting me anywhere.

Help very much appreciated.
