Unintialize constant User::HappyMapper (Name Error)

Hi All,

I am not able to run the HappyMapper example posted on the site.

I have attached the copy of the NetBean RubyProject which has where I am
trying to get that example to work.

Step done so far:
1. gem install happymapper
2. Created RubyApplication project in NB
3. Copy and Pasted the code HappyMapper example code from their site :
http://happymapper.rubyforge.org/

Getting error:
E:/RubyApplication4/lib/main.rb:26:in `<class:User>': uninitialized
constant User::HappyMapper (NameError)
from E:/RubyApplication4/lib/main.rb:25:in `<main>'

I am new to Ruby World...Pls Help!!!!

Thanks in Advance!!!

Attachments:
http://www.ruby-forum.com/attachment/6891/RubyApplication4.zip

···

--
Posted via http://www.ruby-forum.com/.

Perhaps a ...

require 'happymapper'

at the beginning of your code will save your day.

Abinoam Jr.

···

On Mon, Jan 9, 2012 at 5:07 AM, Sagar Varule <sagar.varule@gmail.com> wrote:

Hi All,

I am not able to run the HappyMapper example posted on the site.

I have attached the copy of the NetBean RubyProject which has where I am
trying to get that example to work.

Step done so far:
1. gem install happymapper
2. Created RubyApplication project in NB
3. Copy and Pasted the code HappyMapper example code from their site :
http://happymapper.rubyforge.org/

Getting error:
E:/RubyApplication4/lib/main.rb:26:in `<class:User>': uninitialized
constant User::HappyMapper (NameError)
from E:/RubyApplication4/lib/main.rb:25:in `<main>'

I am new to Ruby World...Pls Help!!!!

Thanks in Advance!!!

Attachments:
http://www.ruby-forum.com/attachment/6891/RubyApplication4.zip

--
Posted via http://www.ruby-forum.com/\.