Ok, I have a Ruby script that should be included in many Rails applications. Therefore, I do not want to break it into pieces and paste it into a specific application, but it is better to save it in 1 piece, and the Rails application will load it. A script is required mainly from models, mailers, and rarely controllers.
So, if my script is equal to tools.rb , where in my Rails file tree should I put it and how / where in my Rails application do I enable it? In addition, the script comes with a YAML file.
Its my second day of Rails training, so please bear with me.
source share