快速编辑的支持
This commit is contained in:
parent
2228a804cc
commit
d293cea7ec
|
@ -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
|
@next = Post.where(:created_at.gt => @post.created_at).asc(:created_at).where(:id.ne => @post.id).first
|
||||||
@comments = @post.comments
|
@comments = @post.comments
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
@post = Post.find( params[:id] )
|
||||||
|
redirect_to edit_admin_post_path(@post)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue