Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AM guide: standarizes call to rails runner

  • Loading branch information...
commit d2844b854b57e2e3c8693c796e7296e45a866212 1 parent 217ffcb
@fxn fxn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/action_mailer_basics.textile
View
2  railties/guides/source/action_mailer_basics.textile
@@ -333,7 +333,7 @@ Receiving and parsing emails with Action Mailer can be a rather complex endeavou
* 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 +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:
Please sign in to comment.
Something went wrong with that request. Please try again.