yeyicheng

Untitled

May 6th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.14 KB | None | 0 0
  1. def destroy
  2.     @post = Post.find(params[:id])
  3.     @post.destroy
  4.     redirect_to posts_path, :notice => "Post ##{params[:id]} has been deleted"
  5. end
Advertisement
Add Comment
Please, Sign In to add comment