Why would I receive an error message that looks like this:

<[email protected]> (expanded from
    <[email protected]>): Command died with status 1:
    "/opt/ruby-enterprise-1.8.6-20090610/bin/ruby
    /var/www/rails/railshq.net/script/runner
    'Emailer.receive2optin(STDIN.read)'". Command output:
    /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/
rails-2.3.2/lib/commands/runner.rb:48:
    undefined method `receive2optin' for Emailer:Class
(NoMethodError)  from

When my action mailer class looks like this:

class Emailer < ActionMailer::Base
   # First method omitted for simplicity
  def receive2optin(email)
    outfile=File.open('/tmp/debug1','w')
    outfile.puts(email.from[0])
    outfile.close
  end
end

Any thoughts would be appreciated.  Thanks.

         ... doug

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to