# Rails form help needed

**URL:** <https://www.ruby-forum.com/t/rails-form-help-needed/122366>\
**Category:** Ruby\
**Created:** [December 7, 2007, 12:00am UTC](https://www.ruby-forum.com/t/rails-form-help-needed/122366 "2007-12-07T00:00:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 7, 2007, 12:00am UTC](https://www.ruby-forum.com/t/rails-form-help-needed/122366/1 "2007-12-07T00:00:53Z")

</div>

For some reason my selct shows \<option value="#\<Tag:0x47f52e8\>"  
I am looking to have a select drop down box.  
this is my controller  
@nonExistingTags=Tag.find\_by\_sql(“select \* from tags where id not in  
(select t.id from Tags t,tags\_trades tt where t.id = tt.tag\_id and  
tt.trade\_id= #{params[:id]})”)

this is my view

\<% #deal with the tags not associated with this trade %\>  
\<%= form\_tag( :action =\> ‘add\_tag’ , :id=\>@nonExistingTags ) %\>  
\<%= select(“id”,“description” , @nonExistingTags) %\>  
\<%= end\_form\_tag %\>

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 7, 2007, 1:35am UTC](https://www.ruby-forum.com/t/rails-form-help-needed/122366/2 "2007-12-07T01:35:35Z")

</div>

On Dec 6, 2007, at 15:00 , Junkone wrote:

> For some reason my selct shows \<option value="#\<Tag:0x47f52e8\>"

please redirect this question to the ruby on rails mailing list.
