# Select\_tag with options\_for\_select not populating DB

**URL:** <https://www.ruby-forum.com/t/select-tag-with-options-for-select-not-populating-db/185712>\
**Category:** Rails\
**Created:** [March 24, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/select-tag-with-options-for-select-not-populating-db/185712 "2010-03-24T23:39:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_programmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@The\_programmer](https://www.ruby-forum.com/u/The_programmer)\
**Post date:** [March 24, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/select-tag-with-options-for-select-not-populating-db/185712/1 "2010-03-24T23:39:29Z")

</div>

I’m trying to get my animal app to let users populate info about each  
animal. The code below partially works. It shows the drop down menu,  
and it shows the names of what I wanted it to be the names of the  
Databases. I don’t know how to make it work so it shows the name dog  
and than you hit submit and it appears in the dog view. When I hit  
submit it just makes a new view under the current database, when I  
want it to change to the one selected.  
I changed variables and instances for privacy reasons(I’m sure most  
people do.)  
\<% form\_for :animals do |f| %\>  
\<%= f.error\_messages %\>  
\<%= f.label :update %\>  
  
  
\<%= f.text\_area :updates, :rows =\> 6 %\>  
  
  
\<%= select\_tag “update”, options\_for\_select(%w{dogs\_info  
feline\_info}) %\>  
\<%= f.submit “submit” %\>  
\<% end %\>

I really appreciate any help!  
Thank you.
