In the routes file create a route ... that is no routes file

the course is learn ruby on rails
3.Controller
3/7 - generate a controller named Messages -> V
- “In the routes file, create a route that maps the URL /messages to the Messages controller’s index action.” where is it? in App bin config, db not found in the files!

yeah the same happened to me but no-one seems to know right?

Try in
config\routes.rb

  1. Rails.application.routes.draw do
  2. get ‘/messages’ => ‘messages#index’
10 Likes

Dear god it worked. I have absolutely ZERO idea how we were supposed to understand that based of the lesson leading up to that section and with NO instruction whatsoever. Thank you thank you thank you henry

3 Likes

Thank you Henry! It worked for me too.