implements edit mode for post mode menu

This commit is contained in:
albert
2011-10-21 18:56:27 -04:00
parent 88317bb4c9
commit 8a5f26f3e5
6 changed files with 62 additions and 5 deletions

View File

@@ -19,7 +19,11 @@ class PostsController < ApplicationController
def update
@post = Post.find(params[:id])
@post.update_attributes(params[:post])
respond_with(@post)
respond_with(@post) do |format|
format.json do
render :json => @post.to_json
end
end
end
def revert