Search code examples
ruby-on-railsrubygemsgemfile

Errors on generating controllers


Here is the error when controller is generated

Here is my Gem-file code

Help me to fix out this error


Solution

  • Rails errors always tell you the problem and where to look:

    unexpected local variable or method, expecting 'end' ....../Gemfile:28

    So on line 28 of the gemfile, there is something unexpected.

    Look at line 28 and you'll see that you have

    gem 'selenium-webdriver' gem 'webdrivers'

    Which is not the same as any other line in the gemfile. Each gem needs to be on its own line.