# Rails form help needed

**URL:** <https://rubytalk.org/t/rails-form-help-needed/42811>\
**Category:** ruby-talk\
**Created:** [6 December 2007 23:00 UTC](https://rubytalk.org/t/rails-form-help-needed/42811 "2007-12-06T23:00:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Junkone](https://rubytalk.org/u/Junkone)\
**Post date:** [6 December 2007 23:00 UTC](https://rubytalk.org/t/rails-form-help-needed/42811/1 "2007-12-06T23:00:05Z")

</div>

For some reason my selct shows \<option value="#&lt;Tag:0x47f52e8&gt;"  
I am looking to have a select drop down box.  
this is my controller  
&nbsp;&nbsp;@nonExistingTags=Tag.find\_by\_sql("select \* from tags where id not in  
(select [t.id](http://t.id) from Tags t,tags\_trades tt where [t.id](http://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:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [7 December 2007 00:34 UTC](https://rubytalk.org/t/rails-form-help-needed/42811/2 "2007-12-07T00:34:27Z")

</div>

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

> **···**
>
> On Dec 6, 2007, at 15:00 , Junkone wrote:
> 
> > For some reason my selct shows \<option value="#&lt;Tag:0x47f52e8&gt;"
