<% if @teachers.present? %> <% @teachers.each_with_index do |teacher, index| %> <% if index < 3 %> <% else %> <%= index + 1 %> <% end %> <%= teacher['real_name'] %> <%= teacher['course_count'] %> <%= teacher['shixun_work_count'] %> <%= teacher['un_shixun_work_count'] %> <%= teacher['student_count'] %> <%= teacher['complete_rate'] %>% <%= teacher['publish_shixun_count'].to_i %> <% end %> <% else %> 暂无数据 <% end %>