Merge branch 'master' into 'master'

已发布实训更新后,TPI提示的“更新通知”,点击立即更新,请增加等待提示

已发布实训更新后,TPI提示的“更新通知”,点击立即更新,请增加等待提示

See merge request !24
This commit is contained in:
戴傲 2017-10-17 09:25:03 +08:00
commit e6e9df907d
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ class BlogsController < ApplicationController
:author_id=>params[:id])
end
def destory
@blog = Blog.find(params[:id])
@blog.update_attribute(:homepage_id, params[:article_id])
redirect_to user_path(params[:user_id])
end
def edit