% select_option = [] (select_option << [l('welcome.search.select.project'), 'projects']) if project_type == Project::ProjectType_project (select_option << [l('welcome.search.select.course'), 'courses']) if project_type == Project::ProjectType_course select_option << [l('welcome.search.select.user'), 'users'] #select_option << ['教师', 'users_teacher'], #select_option << ['学生', 'users_student'] %> <%= form_tag({controller: :welcome, action: :search }, method: :get) do %>