# Multiple collection\_select

**URL:** <https://www.ruby-forum.com/t/multiple-collection-select/195454>\
**Category:** Rails\
**Created:** [September 23, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/multiple-collection-select/195454 "2010-09-23T12:58:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PalaniKannan\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Post date:** [September 23, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/multiple-collection-select/195454/1 "2010-09-23T12:58:54Z")

</div>

Dear all,

1. collection\_select (country)
2. collection\_select (state)
3. collection\_select (city)

I need to give the query system hierarchically.

(Eg. select India -\> then it should populate states in India-\> select  
state  
tamilnadu-\> it should populate cities in tamilnadu-\> select madras-\> It  
should get all params values as params[:country], :params[:state],  
:params[city]-\>@list = Table.find(conditions…params[:country],  
:params[:state], :params[city]))

This is the exact problem I need. In tutorials, this kind of hierarchal  
collection\_select options are not available… If clear tutorials  
available  
kindly tell me… With Advanced Thanks.

–  
With Regards  
Palani Kannan. K

---

<div class="post-metadata">

**Author:** ![PalaniKannan\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Post date:** [September 23, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/multiple-collection-select/195454/2 "2010-09-23T13:07:41Z")

</div>

watch this

> **[\#88 Dynamic Select Menus - RailsCasts](http://railscasts.com/episodes/88-dynamic-select-menus)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.
