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


#1

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!


#2

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


How to "create a route that maps the URL /messages to the Messages controller's index action"?
#3

Try in
config\routes.rb

  1. Rails.application.routes.draw do
  2. get '/messages' => 'messages#index'

#4

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


#5

Thank you Henry! It worked for me too.


#7