Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def destroy
- @movie = Movie.find(params[:id])
- @movie.destroy
- flash[:notice] = "Movie '#{@movie.title}' deleted."
- redirect_to movies_path
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement