kyttcar kyttcar - 1 year ago 85
Ruby Question

Error in Routes.rb config syntax error in line 11?

I am going through the rubyonrails tutorial by Michael hartl and I was only updating the routes.rb config as required at end of chapter 1 in order to add a application#goodbye.

However, now even my application#hello shows a syntax error in line 11 , eventhough i didn't change that line at all.

Any ideas on why ?

Here is a pic of the file and the code
enter image description here

Thanks a lot in advance !

Answer Source

Line 7, opens a string with '. It reports the error on that line because a ' closes the string and the rest becomes error.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download