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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eric L. (Guest)
on 2006-04-27 10:25
I implemented the IMAP example at the bottom of:

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

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

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