[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

uninitialized constant Ruport::Report (NameError

Mmcolli00 Mom

4/21/2009 6:38:00 PM

I got this code off the website below. I wanted to run and watch the
example then create code with the ruport gem. On the website, the user
never got an answer on why he is getting the error "uninitialized
constant Ruport::Report (NameError)". I would like for this to work for
me but when I tried to check it out by running it after installing the
ruport gem, I also got that error. Does anyone know how to fix this? I
do get this error now and then but have never understood why it happens.
Thanks
MC


http://www.phwinfo.com/forum/comp-lang-ruby/356308-send-email...

#! /usr/bin/ruby

require 'ruport'

r = Ruport::Report.new
r.add_mailer :default,
:host => "my.smtp.host",
:address => "my@adress"

r.send_to('send.to@mail') do |mail|
mail.subject = "Subject"
Dir["*.tif"].each { | cName | mail.attach(cName) }
mail.text = "Body text"
end
--
Posted via http://www.ruby-....

1 Answer

Mmcolli00 Mom

4/21/2009 7:01:00 PM

0

Nevermind this - I see a thread just like this one. Sorry guys.
--
Posted via http://www.ruby-....