Tuesday, May 15, 2012

cannot load such file -- somerubyfile

Error message: 

cannot load such file -- config/init

Backtrace:
line 3: config.ru

So I was trying to load a sinatra app and I had this error keep coming up. I found out that all you have to do is add "./" to the front of the require like "./config/init" and all will load just fine.

Using:
ruby 1.9.3p194
Phusion Passenger version 3.0.12
sinatra (1.3.2)

No comments:

Post a Comment