Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion db:create with ActiveRecord gives "uninitialized constant User::DataMapper - (NameError)"
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt Aimonetti  
View profile  
 More options Nov 12 2008, 8:00 pm
From: "Matt Aimonetti" <mattaimone...@gmail.com>
Date: Wed, 12 Nov 2008 20:00:53 -0500
Local: Wed, Nov 12 2008 8:00 pm
Subject: Re: [merb] db:create with ActiveRecord gives "uninitialized constant User::DataMapper - (NameError)"

The generated merb stack app defines a DM User so it won't work for you.
Please follow my last advice and create a core app if you want to use
JRuby.  We need a DM adapter for JDBC but in the mean time, you can't use a
merb stack app with JRuby.

-Matt

On Wed, Nov 12, 2008 at 7:56 PM, Arun <arun.gu...@gmail.com> wrote:

> Created a template Merb app, changed the ORM to activerecord in config/
> init.rb, commented DM in config/dependencies.rb, generated a Model as:

> jruby -S merb-gen model --orm activerecord Runner
> distance:float,minutes:integer

> Finally creating the database using "rake db:create" gives the
> following error:

>  ~ It took: 0
>  ~ Loading: Merb::BootLoader::MixinSession
>  ~ It took: 0
>  ~ Loading: Merb::BootLoader::BeforeAppLoads
>  ~ It took: 0
>  ~ Loading: Merb::Orms::ActiveRecord::Connect
>  ~ Connecting to database...
>  ~ It took: 0
>  ~ Loading: Merb::Slices::Loader
>  ~ Loaded slice 'MerbAuthSlicePassword' ...
>  ~ It took: 1
>  ~ Loading: Merb::BootLoader::LoadClasses
>  ~ Could not load /Users/arungupta/samples/jruby/merb/jruby-1.1.5/
> samples/merb/hello/app/models/user.rb:

> uninitialized constant User::DataMapper - (NameError)

> This is all using JRuby 1.1.5.

> What's missing ?

> -Arun


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google