Junkone
12/6/2007 10:59:00 PM
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 %>