form_for 下面有一个 select 多选框,<%=f.select(:page,options_for_select([['首页','sy']]))%>,求教这个里面如何添加 class 属性? 源码是这样的,有些看不懂 def select(method, choices = nil, options = {}, html_options = {}, &block) @template.select(@object_name, method, choices, objectify_options(options), @default_options.merge(html_options), &block) end 麻烦大神给个示范,谢谢