[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rails form help needed

Junkone

12/6/2007 10:59:00 PM

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
@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 %>

1 Answer

Ryan Davis

12/7/2007 12:34:00 AM

0


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

> For some reason my selct shows <option value="#&lt;Tag:0x47f52e8&gt;"

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