Rails loads everything in {$RAILS_ROOT}/lib automatically(then you
dont’ have to explicitly require it). That’s where I have my app wide
library code. If you want to require a gem or ruby library you can do
it in app/controllers/application.rb which then will be available
application wide. Atleast this has worked for me.
-bakki
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.