DEV Community

Cover image for Saying "Hello world" with Ruby on Rails

Saying "Hello world" with Ruby on Rails

Lazarus Lazaridis on November 21, 2017

If you are new to Ruby I suggest you first read this which in short explains why you should not give up on learning Ruby. In this post we will do ...
Collapse
 
karchana_06 profile image
Archana KN

I'm getting this error when started rails server.

Internal Server Error

Missing secret_token and secret_key_base for 'vagrant' environment, set these values in config/secrets.yml
WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) at localhost:3000

Collapse
 
iridakos profile image
Lazarus Lazaridis

Well that is strange... The only thing I can think of is that you start the server with the rails environment set to vagrant.

In which OS are you working on? Can you check if there is an environment variable with the name RAILS_ENV set to vagrant?