班级通知
<% if @course && User.current.allowed_to?(:manage_news, @course) %> <%= labelled_form_for @news, :url =>{:controller=>'news',:action => 'new', :course_id => @course.id}, :html => {:nhname=>'form',:multipart => true, :id => 'news-form'} do |f| %> <%= render :partial => 'course_news_new', :locals => {:f => f, :news => @news, :edit_mode => false, :course => @course} %> <% end %> <% end %> <%= render :partial=> 'course_news_detail',:locals =>{:newss => @newss, :page => 0} %>