<% if @course.errors.full_messages.count <= 0 %>
notice_box('更新成功!');
<% else %>
notice_box('保存失败,请重新编辑');
<% end %>