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
  • 11,216
  • 23
  • 83
  • 140

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
  • 17,900
  • 3
  • 40
  • 50