修正课程通知编辑BUG

This commit is contained in:
nwb 2014-07-21 13:40:38 +08:00
parent ec71e8eeeb
commit 3a249e7196
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<h3><strong><%=h @news.title %></strong></h3> <h3><strong><%=h @news.title %></strong></h3>
<% if authorize_for('news', 'edit') %> <% if authorize_for_course('news', 'edit') %>
<div id="edit-news" style="display:none;"> <div id="edit-news" style="display:none;">
<%= labelled_form_for :news, @news, :url => news_path(@news), <%= labelled_form_for :news, @news, :url => news_path(@news),
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %> :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>