Iron Worker 101 Rails example
IronWorker integrates easily into a Rails application and lets you run and schedule workers in the cloud. After some config (iron.json, worker_name.worker files), it's matter of uploading the workers to IronWorker (inside or outside your app) and then calling them within your app when you want to.
This example show how to work with iron_worker under Rails environment
run 'rails s'
Go to http://localhost:3000 and test
Q: Where should you place workers?
A: Better to place workers in rails_root/workers dir like in example worker dir
Q: How do you upload workers?
A: You can upload workers in a number of ways:
Q: How do you use ActionMailer within a worker?
A: Simple. Just take the following steps:
Q: How do you use Models and/or connect to a database within a worker?
A: It's easy. Here's how: