I need help on number 4 (routes)


#1

Can someone help me do this cos i cant find 'config/routes.rb' so please help :frowning:


#2

No, sorry, I get stalled here too. By typing in config/routes.rb rather than navigating there I can get to where I need to be to enter:
get 'welcome' => 'pages#home'

but then it returns:
Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
config/routes.rb:1:in <top (required)>': undefined methodget' for main:Object (NoMethodError)

This happens whether I enter config/routes.rb, or just routes.rb (which I tried because the routes.rb file is not in the config folder as far as I can see.
I am copying and pasting the get 'welcome' => 'pages#home' line, there is no syntax or typo error.

Please let me know if you solve the problem, cheers


#3

Me as well ! This is really frustrating


#4

I've faced this error too. For me this helped:
1) open Gemfile (without extension)
2) add two lines:

gem 'tzinfo'
gem 'tzinfo-data'

3) save this file and run

bundle install

4) try this exercise again.
Only problem for me - I have to do this before every exercise in a course.