merb-gen model doesn't work
Reported by Michael Holub | May 13th, 2008 @ 01:15 PM | in 1.0
[mholub@mumu slapp]$ merb-gen model Post
exists spec
create spec/models
create spec/models/_spec.rb
When I run merb-gen model without params, I get:
[mholub@mumu slapp]$ merb-gen model
Creates a basic rSpec model spec stub.
USAGE: merb_model_test"
-S, --[no-]spec Generate with RSpec
-T, --[no-]test
...
It seems, that instead of running model generator, merb-gen runs model spec generator.
Comments and changes to this ticket
-
Michael Klishin (antares) May 13th, 2008 @ 03:09 PM
- → State changed from new to open
- → Milestone changed from to 1.0
What is your exact problem, what do you expect it to do?
-

Aadi Deshpande May 15th, 2008 @ 01:11 PM
i have the same problem.
previously,
merb-gen model
would create the entry in the app/model/ directory
but this no longer happens.
this happens under 0.9.4 ( latest ) , but didn't happen in 0.9.3
i believe that i have installed all the requisite gems, ( merb-core, merb-more, and merb-plugins) along with datamapper ( dm-core, dm-more, do , etc.. )
-
Michael Klishin (antares) May 15th, 2008 @ 01:23 PM
I use DataMapper 0.9 with edge merb daily just fine. I'll double check tonight. Thanks.
Feel free to submit a patch, merb gen definitely needs some love.
-

Aadi Deshpande May 15th, 2008 @ 01:28 PM
Here's even more very odd info.
i just created an app with edge merb.
when i go inside the directory and run
"merb-gen generators"
i get back :
Installed Generators
Rubygems: controller, part_controller, resource, test_unit
when i go outside the directory and run
merb-gen generators
i get :
Installed Generators
Rubygems: controller, model, part_controller, resource, resource_controller, story
why would that change when inside the application directory?
-
Michael Klishin (antares) May 15th, 2008 @ 01:43 PM
I think you'll find your answer in Rubigen docs and sources, it is not something merb-gen specific.
-

Aadi Deshpande May 15th, 2008 @ 03:46 PM
I sort of figured this out.
My issue was because I was running edge dm and merb_datamapper wasn't updated along with it.
Once updated, it seems to work now.
-
Michael Klishin (antares) May 15th, 2008 @ 03:47 PM
- → Assigned user changed from to Michael Klishin (antares)
- → State changed from open to invalid
Cool!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
