Code Review

Where do you create the favorite? I would move the logic for creating a favorite from the `MoviesController` into here. Favorites would probably be a nested resource under movies though:

```ruby
resources :movies, only: [:index, :create] do
  resources :favorites, only: [:create]
end
```

Now in your `FavoritesController`:

```ruby
def create
  @movie = Movie.find(params[:movie_id])
  @favorite = Favorite.new
  @favorite.movie = @movie
  @favorite.user = current_user
  # ...
```