# Render a Drop Down

**URL:** <https://www.ruby-forum.com/t/render-a-drop-down/91078>\
**Category:** Rails\
**Created:** [April 4, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/render-a-drop-down/91078 "2007-04-04T12:31:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazmatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b2d939/32.png) [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Post date:** [April 4, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/render-a-drop-down/91078/1 "2007-04-04T12:31:25Z")

</div>

Hey all,

I was just wondering how I would render the following dropdown.

Contact Model

def full\_name  
self.Firstname + ’ ’ + self.Lastname  
end

Inside the view I would like to produce a DropDown list that will have  
the Firstname + Lastname displayed with the id as the value. I have  
tried a few methods and cannot seem to find a way.

Cheers

---

<div class="post-metadata">

**Author:** ![hazmatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b2d939/32.png) [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Post date:** [April 4, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/render-a-drop-down/91078/2 "2007-04-04T15:51:09Z")

</div>

There’s a couple of different options you have.  
options\_from\_collection\_for\_select or select, itself. You might want to  
go  
over the API [  
[ActionView::Helpers::FormOptionsHelper](http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html)]  
to see which one suits your needs best but it looks like either of  
them  
will get you where you need.

RSL
