# Collection\_select

**URL:** <https://www.ruby-forum.com/t/collection-select/140357>\
**Category:** Rails\
**Created:** [June 13, 2008, 7:35am UTC](https://www.ruby-forum.com/t/collection-select/140357 "2008-06-13T07:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhadip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Post date:** [June 13, 2008, 7:35am UTC](https://www.ruby-forum.com/t/collection-select/140357/1 "2008-06-13T07:35:22Z")

</div>

\<%= collection\_select(:project, :id,{@arc\_projects),:id,:name,options  
={:prompt =\> “–Archived Projects–”})%\>   
  
i use this code to retrive archieved project.and its works also…  
but if i want to show a dropdown which can take multiple collection  
like this below code,but it will not work.  
is it is possible in ruby??anybody help me??its urgent.  
\<%= collection\_select(:project,  
:id,{@arc\_projects,@inactive\_projects},:id,:name,options ={:prompt =\>  
“–Archived Projects–”})%\>

if it is possible then what is the write code…pls help urgent…
