you should have just done:

$ merb-gen core --orm activerecord my_app_name

and just add what you need, using merb-gen app  generates a merb stack app
with DM, since you don't want to use DM a core app is better.

-Matt


On Wed, Nov 12, 2008 at 7:48 PM, Arun <[EMAIL PROTECTED]> wrote:

>
> Ah, that explains!
>
> depdencies.rb has:
>
> dependency "dm-core", dm_gems_version
> dependency "dm-aggregates", dm_gems_version
> dependency "dm-migrations", dm_gems_version
> dependency "dm-timestamps", dm_gems_version
> dependency "dm-types", dm_gems_version
> dependency "dm-validations", dm_gems_version
>
> How do I DRY up my application and specify pluggable ORM once ?
>
> If I comment these lines then the model is correctly generated.
>
> -Arun
>
> On Nov 12, 6:36 pm, "Matt Aimonetti" <[EMAIL PROTECTED]> wrote:
> > I'm not sure, you might have some other dependencies requiring dm, can I
> see
> > your init.rb/dependencies.rb files please?
> >
> > -Matt
> >
> > On Wed, Nov 12, 2008 at 7:31 PM, Arun <[EMAIL PROTECTED]> wrote:
> >
> > > Subtle ;-)
> >
> > > Anyway, still getting the same error ...
> >
> > > ../../../bin/jruby -S merb-gen model --orm activerecord Runner
> > > distance:float,minutes:integer
> > > Loading init file from /Users/arungupta/samples/jruby/merb/jruby-1.1.5/
> > > samples/merb/hello/config/init.rb
> > > Loading /Users/arungupta/samples/jruby/merb/jruby-1.1.5/samples/merb/
> > > hello/config/environments/development.rb
> > >  ~
> > >  ~ FATAL: The file dm-core was not found
> > >  ~
> >
> > > config/init.rb is already configured to use activerecord.
> >
> > > What's missing ?
> >
> > > -Arun
> >
> > > On Nov 12, 2:47 pm, "Matt Aimonetti" <[EMAIL PROTECTED]> wrote:
> > > > not sure, but merb-gen arguments are comma delimited and without
> space
> > > > (yeah, I know it sucks :()
> >
> > > > try:
> >
> > > > jruby -S merb-gen model --orm activerecord Runner
> > > > distance:float,minutes:integer
> >
> > > > and
> >
> > > > jruby -S merb-gen model Runner distance:float,minutes:integer
> >
> > > > -Matt
> >
> > > > On Wed, Nov 12, 2008 at 3:42 PM, Arun <[EMAIL PROTECTED]> wrote:
> >
> > > > > jruby -S merb-gen model --orm activerecord Runner distance:float
> > > > > minutes:integer
> >
> > > > > still showing the same error message.
> >
> > > > > Any idea ?
> >
> > > > > On Nov 12, 2:26 pm, Arun <[EMAIL PROTECTED]> wrote:
> > > > > > > merb-gen resource Bird name:string color:string
> family_id:integer
> > > > > > > last_location:string last_seen_at:datetime
> >
> > > > > > "merb-gen resource" gives the error:
> >
> > > > > >  FATAL: The file dm-core was not found
> >
> > > > > > config/database.yml specify:
> >
> > > > > > use_orm :activerecord
> >
> > > > > > > merb-gen AR template uses  the same syntax as Rails generator.
> >
> > > > > > merb-gen does not seem to show any help on this. Can you expand
> more
> > > > > > here ?
> >
> > > > > > -Arun
> >
> > > > > > > -Matt
> >
> > > > > > > On Fri, Sep 26, 2008 at 1:16 AM, Michael Klishin <
> >
> > > > > > > [EMAIL PROTECTED]> wrote:
> >
> > > > > > > > 2008/9/26 MyMerb <[EMAIL PROTECTED]>:
> > > > > > > > > So far... I have not seen any tutorial on Scaffolding in
> Merb.
> >
> > > > > > > > run merb-gen without arguments to see generators available on
> > > your
> > > > > system.
> > > > > > > > Additional gems may provide their own generators.
> > > > > > > > --
> > > > > > > > MK
> >
>

--~--~---------~--~----~------------~-------~--~----~
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