What is wrong with my code?


#1

The instructions tell me this: "In the routes file, add another route to send requests to URLs like /movies/1 to the Movie controller's show action. Use as: to name this route "movie"." And I did, but it keeps return in the error: "/movies/1 should lead to movies#show" Please help!!!


#2

Hi @suttonjd19,

:id means any ID number, which is what they want. /movies/1 was an example, so if you remove the 1 so it looks like this instead, it should work :slight_smile::

get '/movies/:id' # ...

#3

Oooooh. I thought that /movies/1 was a required part, well thank you. :slight_smile:


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.