Flowdock
method

destroy

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: CommentsController
destroy() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/guides/code/getting_started/app/controllers/comments_controller.rb, line 9
  def destroy
    @post = Post.find(params[:post_id])
    @comment = @post.comments.find(params[:id])
    @comment.destroy
    redirect_to post_path(@post)
  end
Register or log in to add new notes.