Stuck on 5/7 Step 1


#1

??? I do not get it AT ALL..


#2

Well that's too bad. If only there was a way you could explain what has got you stuck..


#3

Step 1, i'm in the routes file, but the error keeps popping up "/messages/new should route to messages#new"
That's what I don't get


#4

It seems to suggest that you haven't added that route. Would you say that you have? If not, then that is what you need to do. If you think you have added that route, then perhaps it isn't quite right and needs a bit of adjusting.

So what is the problem?
Are you wondering how to add a route?
Are you wondering where routes are defined?
Do you think the error message is incorrect?
Is your cat on fire?

You gotta explain what it is that you want to know! Be specific, include relevant information.


#5

Here is my code, but it doesn't seem to work:


get '/messages' => 'messages#index'


#6

Your route is from /messages to index, that's not what the error message is saying that you're missing.


#7

You need to map the "new messages" to the "new action"
This worked for me but curious to know if I'm on the right track? Or if it was just a fluke?

get '/messages' => 'messages#index'
get '/messages/new' => 'messages#new'