I have rails website that shows information from database. And I have ruby script that should add data in this database. Can I somehow connect this script to my rails app to use its models?
I have rails website that shows information from database. And I have ruby script
Share
You can either load the Rails environment by doing a require
or use a Rake task (http://railscasts.com/episodes/66-custom-rake-tasks).