f.select

<%= f.select :id_eq, options_for_select(current_user.activities.show.where(:activity_type_id => 10).order('created_at desc').map{|a|[a.name,a.id]}, @activity.id), {}, :class => "input-select" %>

posted @ 2013-12-18 12:17  小狸的窝  阅读(406)  评论(0编辑  收藏  举报