Rails, Heroku does not load my lib Rails, Heroku does not load my lib heroku heroku

Rails, Heroku does not load my lib


you want require 'my_file_to_require' assuming you've named your file properly.

Require takes the filename, not the module/class name, so:

require 'MyUtilityClass'   # wrong

is wrong but

require 'my_utility_class'  # correct

is correct, again assuming you've stuck to the normal ruby/rails file naming conventions.


Have you tried to restart your app after it's deployed? You can use the following command:

heroku restart