work on post unapproval javascript
This commit is contained in:
@@ -10,6 +10,7 @@ class PostsController < ApplicationController
|
||||
|
||||
def show
|
||||
@post = Post.find(params[:id])
|
||||
@unapproval = Unapproval.new(:post_id => @post)
|
||||
respond_with(@post)
|
||||
end
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class UnapprovalsController < ApplicationController
|
||||
|
||||
def create
|
||||
@unapproval = Unapproval.create(params[:unapproval])
|
||||
respond_with(@unapproval)
|
||||
respond_with(@unapproval, :location => post_path(@unapproval.post_id))
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
Reference in New Issue
Block a user