Advertisement
xenodesystems

Acción Destroy - Blog en Rails

Jun 9th, 2012
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.13 KB | None | 0 0
  1.     def destroy
  2.     @post = Post.find(params[:id])
  3.     @post.destroy
  4.     redirect_to posts_path, :notice => "Tu post se ha Borrado"
  5.     end
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement