Skip to content
Rails Application Demonstrating IronWorker Usage http://www.iron.io
Ruby CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
workers
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
config_development.yml
iron.json

README.md

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

Getting Started

  1. Set proper configuration in iron.json and config_development.yml

  2. run 'rails s'

  3. Go to http://localhost:3000 and test

FAQ Rails+IronWorker

  1. Q: Where should you place workers?

    A: Better to place workers in rails_root/workers dir like in example worker dir

  2. Q: How do you upload workers?

    A: You can upload workers in a number of ways:

  3. Q: How do you use ActionMailer within a worker?

    A: Simple. Just take the following steps:

  4. Q: How do you use Models and/or connect to a database within a worker?

    A: It's easy. Here's how:

Something went wrong with that request. Please try again.