5.Movies II bug in #1

Please correct a bug in #1 of 5.Movies II. My route is definitely correct yet I get the error message, “/movies/1 should lead to movies#show.” My code clearly does this:

‘Rails.application.routes.draw do
get ‘/movies’ => ‘movies#index’
get ‘/movies/1’ => ‘movies#show’, as: :movie

Why am I getting an error message? Please fix this bug.

This is the code that works:

Rails.application.routes.draw do

get '/movies' => 'movies#index'
get '/movies/:id' => 'movies#show', as: :movie

So it will probably help other students if the instructions say to route “/movies/:id” instead of “/movies/1”


It’s not a bug, the description says: “URLs like /movies/1”, not that you have to insert “/movies/1”