0

I'm not being able to require a file under /lib on Heroku console. Any idea why?

This is in my local machine

ruby-1.9.2-p290 :001 > require "folder/file.rb"
 => true 

This is on Heroku console (Cedar)

irb(main):057:0> require "folder/file.rb"
=> false
Martin
  • 10,926
  • 22
  • 82
  • 136

1 Answers1

2

As I suggested in the question's comments, it worked with require './folder/file.rb'.
Note the ./ before the file path.

Samy Dindane
  • 16,786
  • 3
  • 39
  • 49