Forum: Ruby on Rails Newbie: Help with wiki IMAP example

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8a6e531ff15d53c5177d2ca8d9206b99?d=identicon&s=25 Eric Lang (eric99)
on 2006-04-27 08:25
Hi,
I implemented the IMAP example at the bottom of:
http://wiki.rubyonrails.com/rails/pages/HowToRecei...

The receiver app (inbox.rb) works fine when I run it against my mail
server with the following line commented out: MailReader.receive(to,
body)

But when I uncomment that line I get error:

inbox.rb:15 uninitialized constant MailReader (NameError)

There is of course app/models/mail_reader.rb running in my rails app.

How do I get the mail receiver app to know about the MailReader model?

I start the rails app with: ruby script/server -p 80

In another cmd window I then run the receiver app with ruby
script/inbox.rb


Any help appreciated.
Regards,
 Eric
This topic is locked and can not be replied to.