# Drop down list from a scaffold

**URL:** <https://www.ruby-forum.com/t/drop-down-list-from-a-scaffold/123938>\
**Category:** Rails\
**Created:** [December 22, 2007, 9:31am UTC](https://www.ruby-forum.com/t/drop-down-list-from-a-scaffold/123938 "2007-12-22T09:31:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [December 22, 2007, 9:31am UTC](https://www.ruby-forum.com/t/drop-down-list-from-a-scaffold/123938/1 "2007-12-22T09:31:32Z")

</div>

I have a largely-default scaffold at \<[http://strawr.googlecode.com/svn/](http://strawr.googlecode.com/svn/)  
trunk/app/views/feeds/show.rhtml\> to which I’d like to add a drop down  
list.

The join table between “categories” and “feeds” is “tags” (for want of a  
better name). It’s an association of the “has many through” variety.  
From the console It’s quite easy to create a row in “feeds”, create a  
row  
in “categories” and then to create a row in “feeds” which links the  
“feeds” row with the “categories” row. It seems to work find as  
expected  
from the console: a many-to-many relationship.

To create a drop down list of categories from \<[http://localhost:3000/](http://localhost:3000/)  
feeds/show/1\> is what I’m after. Right now it’s text box which I’d like  
to change to a drop down list populated with all of the rows from  
“categories”.

thanks,

Thufir
