I am pulling email via pop into my Rails 3 application so i have a file called dropbox_receiver.rb in the rails lib directory.
This pulls in all email and calls DropBox.receive(email)
I can run this using rails/runner but when i run it from the daemon_controller.rb file i get the error
initialized constant Object::DropBox
How do i boot rails 3 in this script ?
Also how do i log properly from this script to my production.log?