Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > uninitialized constant Ruport::Report (NameError)

Reply
Thread Tools

uninitialized constant Ruport::Report (NameError)

 
 
Mmcolli00 Mom
Guest
Posts: n/a
 
      04-21-2009
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-la...mail-ruby.html

#! /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-forum.com/.

 
Reply With Quote
 
 
 
 
Mmcolli00 Mom
Guest
Posts: n/a
 
      04-21-2009
Nevermind this - I see a thread just like this one. Sorry guys.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uninitialized constant ApplicationController (NameError) Daniel Ruby 2 06-22-2006 08:39 AM
ruby - rexml/streamlistner - error: uninitialized constant jsp408@comcast.net Ruby 2 06-15-2006 11:30 AM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
Uninitialized constant objects =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?= C++ 5 06-01-2005 11:31 AM
uninitialized constant Magick in RMagick Todd Gardner Ruby 3 06-17-2004 09:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57