Advertisement
saasbook

destroy.rb

Aug 15th, 2013
855
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.   @movie = Movie.find(params[:id])
  3.   @movie.destroy
  4.   flash[:notice] = "Movie '#{@movie.title}' deleted."
  5.   redirect_to movies_path
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement