Reading along with the agile book, it says this in a footnote:
... You simply pass the select helper the result of doing a find(:all) on your lookup table.
Okay ...
<%= f.select :source, Source.find(:all) %>
My source controller (and therefore table) looks like this:
create_table :sources do |t|
t.string :source
t.timestamps
end
But my select box is a mess, I get this type of data in all the values and displays:
#<Source:0x23a2bfc>
So I tried doing a Source.find(:all, :select => 'name,id')
but that still gives me the whacky looking stuff.
What am I doing wrong?