5. Create messages 1


#1

The first instruction is

In the routes file, create a route that maps requests to messages/new to the Message controller's new action.

But i cant find the routes file and codecademy never told me how to maps request! Please help


#2

Hi @cssplayer82860,

The routes file is in config/routes.rb. You can find it if you click the folder icon in the upper-left of the code editor.

To map a request, you do this:

# Method "URL" => "Controller#Action"
get 'messages/new' => 'messages#new'

#3

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