This example show how to work with iron_worker under Rails environment
-
Set proper configuration in iron.json and config_development.yml
-
run 'rails s'
-
Go to http://localhost:3000 and test
-
Q:Where to place workers?
A:Better to place workers in rails_root/workers dir like in example worker dir
-
Q:How to use ActionMailer in worker?
A: Do following steps:
- merge mailer and template in .worker file
- configure mailer in worker - init_mailer
- send email