diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2013-01-06 16:13:47 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2013-01-06 21:41:36 -0700 |
commit | 009873aec89a4b843b41accf616b42b7a9917ba8 (patch) | |
tree | 3f1500ea344dbd9606627fd47c633e71af52ea8f /guides/source/action_mailer_basics.md | |
parent | 19b52d3f81080d8eacb78c94bd5957ef7c637d07 (diff) | |
download | rails-009873aec89a4b843b41accf616b42b7a9917ba8.tar.gz rails-009873aec89a4b843b41accf616b42b7a9917ba8.tar.bz2 rails-009873aec89a4b843b41accf616b42b7a9917ba8.zip |
Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
Diffstat (limited to 'guides/source/action_mailer_basics.md')
-rw-r--r-- | guides/source/action_mailer_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md index 795afd0150..7c6ef52f4a 100644 --- a/guides/source/action_mailer_basics.md +++ b/guides/source/action_mailer_basics.md @@ -419,7 +419,7 @@ Receiving and parsing emails with Action Mailer can be a rather complex endeavor * Implement a `receive` method in your mailer. -* Configure your email server to forward emails from the address(es) you would like your app to receive to `/path/to/app/script/rails runner 'UserMailer.receive(STDIN.read)'`. +* Configure your email server to forward emails from the address(es) you would like your app to receive to `/path/to/app/bin/rails runner 'UserMailer.receive(STDIN.read)'`. Once a method called `receive` is defined in any mailer, Action Mailer will parse the raw incoming email into an email object, decode it, instantiate a new mailer, and pass the email object to the mailer `receive` instance method. Here's an example: |