Yep, that works!

Thanks,
-Arun

On Nov 12, 7:00 pm, "Matt Aimonetti" <[EMAIL PROTECTED]> wrote:
> 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 <[EMAIL PROTECTED]> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to