Hi,
I got an address book with a list-column, and I want this dropdown to display the unique values I have used. So I can sort on e.g. "work" or "friend".
<%= select("post", "list", Number.find(:all, :order => "list", :conditions => "company = '#{$user_company}' ").collect \ {|p| [ p.list ] }, { :include_blank => true }) %>
Is that possible, or do I have to use a low level SQL query?
Best regards, Martin Stabenfeldt