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