Topic: Adding "select" to "text_field" submission to " _form"

I am currently prompting user to input strings for 2 fields that get submitted to a _form. I want to change one of them to a drop down box using select.

<!--[form:link]-->

<p><label for="link_graph">Enter Name</label><br/>
<%= text_field 'link', 'graph', {"size" => 5} %></p>

<p><label for="link_graph">Enter Type</label><br/>
<%= text_field 'link', 'catagory', {"size" => 25} %></p>

<!--[eoform:link]-->

By using the following code, I am able to get the view correct but although I get no errors, I get never push the selected data into the DB, any pointers would be appreciated..thanks:

<!--[form:link]-->

<p><label for="link_graph">Enter Name</label><br/>
<%= text_field 'link', 'graph', {"size" => 5} %></p>

<p><label for="link_graph">Select Type</label><br/>
<select name ="catagory">
<option value="one">Type One
<option value="two">Type Two
</select>

<!--[eoform:link]-->

Re: Adding "select" to "text_field" submission to " _form"

I got lucky and figured this one out. I needed to specify the table[field] for the select statement:

<select name ="link[catagory]">
<option value="Type one">Type one
<option value="Type two">Type two
</select>

...case closed....