The pull request with all the code.

should only be able to destroy your own ratings, right? 
if so, then do this:
``` ruby
rating = current_user.ratings.find(params[:id])
rating.destroy
redirect_to movie_path, notice: 'Rating was successfully destroyed.'
```