kyttcar kyttcar - 4 months ago 13x
Ruby Question

Error PArsing Gemfile "syntax error , unexpected tSTRING

I am a total newbie. I'm doing the Rubytutorial by Michael Hartl and yesterday everything worked and I was able to publish Hello World-using cloud9 IDE as recommended by the book.

This morning however, it seems that the Turbolinks Gem in the gemfile has a syntax error. And as a result, it is not letting me publish the page.

Here is the error, as listed :

[!] There was an error parsing Gemfile: syntax error, unexpected
tSTRING_BEG, expecting keyword_do or '{' or '(' - gem 'turbolinks',
^ /home/ubuntu/workspace/hello_app/Gemfile:20: syntax error, unexpected ',', expecting end-of-input gem 'turbolinks', '2.3.0'

Here is a picture of the Gemfile:

enter image description here

I can't seem to recognize what the syntax error is.

Here is the image of the syntax error:

enter image description here


As per the image you have shared there is an extra , contains in the line gem 'jquery-rails'. You might want to remove that. Hope this helps?