3. Controller 3/7: get "/messages" => "messages#index"


#1

I have seen this topic a lot of times but non of the answers work for me, this is the error when i add the route get "/messages" => "messages#index" :

Error: "Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
/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
"

Alternatives that also didnt work:
get "/message" => "messages#index"
get "messages" => "messages#index"
get "message" => "messages#index"

Any help! :wink:


#2

Hi @blogrockstar35175,

Please consult these links for a solution:

https://discuss.codecademy.com/t/pages-controller-rb-not-in-folder/84291/12?u=zystvan
https://discuss.codecademy.com/t/tzinfo-data-error/85895?u=zystvan
https://discuss.codecademy.com/t/browser-not-working/83754/3?u=zystvan


#3

Were you able to solve the issue? I think the mod's answer is irrelevant.


#4

Hey guys, thanks for the quick replies. i havent been able to solve it even with what the MOD suggested.

I'm gonna reset my progress and start all over again... lets see what happens this time...


#5

I solved the issue by resetting my progress and starting all over again. I did run into some new issues with rake db:migrate and rake db:seed and solved it by running the commands like this:

bundle exec rake db:migrate
bundle exec rake db:seed

Cheers!


#7

This topic is solved.