快速编辑的支持

This commit is contained in:
yafeilee 2014-04-01 18:24:54 +08:00
parent 2228a804cc
commit d293cea7ec
1 changed files with 5 additions and 0 deletions

View File

@ -19,4 +19,9 @@ class BlogsController < ApplicationController
@next = Post.where(:created_at.gt => @post.created_at).asc(:created_at).where(:id.ne => @post.id).first
@comments = @post.comments
end
def edit
@post = Post.find( params[:id] )
redirect_to edit_admin_post_path(@post)
end
end