<%= select("product","product_id", Product.find(:all).collect{|p| [p.author_name, p.id]}, {:include_blank => false }) %>
Product.find(:all) 在页面上操作数据不是好做法,应该在controller中处理,然后传给页面来显示
@products = Product.find :all
<%= collection_select (:product,:product_id, @products ,:id, :author_name) %>