What should be the right response for a RecordNotFound Error when doing something like this:
def destroy
@post = current_user.posts.find(params[:id])
@post.destroy
head :no_content
end
What should be the right response for a RecordNotFound Error when doing something like this:
def destroy
@post = current_user.posts.find(params[:id])
@post.destroy
head :no_content
end