My first speedbump

I need some help on exercise 3. Controllers, part 2 :
“In the routes file, create a route that maps the URL /messages to the Messages controller’s index action.”

this is what I have so far :

Rails.application.routes.draw do
GET “/messages” => “messages#index”

in the routes.rb file

Hi @hatrickicker,

That looks correct. Just make sure you’ve got an end at the end of the file. What does the error message you’re getting say?

I don’t have an error message after adding the end to the end of the do block thank you.

1 Like

I retract… its giving me an error again.

Rails.application.routes.draw do

get ‘messages’ => ‘messages#index’

/home/ccuser/.gem/ruby/2.3.0/gems/activesupport-4.1.1/lib/active_support/values/time_zone.rb:285: warning: circular argument reference - now

That’s a bug, please report it through the form below the instructions on the left of the page, then try one of these solutions:

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