Routes error


#1

Can someone explain to me why I’m getting an error message? I’m pretty sure the route is correct. I had the issue before and I had to click solution the reset the exercise but this route was see as correct. Is there a bug???


#2

Your screenshot doesn’t include the error itself, which is where you’d start looking to find out what’s going on


#3

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

That’s the error message


#4

That’s not an error though, it’s a warning
I suspect the error is really something else

If there’s nothing else in that red popup thing, you could run your app from the commandline so you can see the output

$ pkill ruby
$ rails server
... you might see the actual error here

The pkill command is for stopping any already running instances of your app, otherwise rails server refuses to start

Oh and afterwards you might need to:

$ pkill -u ccuser

And refresh the page
(If starting the server yourself somehow interferes with the exercise)
this would effectively close your session and force a new one
…To be clear, this does nothing to resolve your error, it’s not supposed to solve anything.


#5

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