Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails Application Demonstrating IronWorker Usage
Ruby CoffeeScript JavaScript
Tree: 6f6ade5cf7

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

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 to place workers?

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

  2. Q:How to use ActionMailer in worker?

    A: merge mailer and template in .worker file

    configure mailer in worker - [init_mailer](https://github.com/iron-io/iron_worker_rails_example/blob/master/workers/simple_mailer_worker.rb#L7)
    
    [send email](https://github.com/iron-io/iron_worker_rails_example/blob/master/workers/simple_mailer_worker.rb#L29)
    
Something went wrong with that request. Please try again.