Michael Whitman wrote:> I want a select box that displays 5 rows instead of one row and a drop
> down.
> so i figure this should work, but it doesn''t.
>
> <%= collection_select(:constellation, :region_id, @regions, :id, :name,
> html_options = {:size => ''5''})%>
>
> I am not quite sure how to use that html_options and googling around I
> didnt
> find anything directly on point.
>
> Any suggestions?
>
> Thanks,
>
> Mike
> **
> **
Try
collection_select(
:constellation,
:region_id,
@regions,
:id,
:name,
nil,
{
:multiple => true,
:size => 5
}
)
--
Posted via http://www.ruby-forum.com/.