
datamapper-on-rails example app: script/generate does not work
Reported by Wlodek Bzyl | June 21st, 2009 @ 05:15 AM
Running the command:
script/generate model comment article_id:integer body:text
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/comment.rb
uninitialized constant Rails::Generator::GeneratedAttribute::ActiveRecord
Problem with rails_datamapper 0.9.11 generators?
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) July 9th, 2009 @ 02:22 PM
- State changed from new to confirmed
While I cannot confirm your problem with 0.9.11, I had other problems when trying to reproduce your errors with 0.10. It seems like the rails generators still assume datamapper to be 0.9.11, which is probably the right thing atm, but I guess they would need to be reworked a bit to work with 0.10
mungo:snippets snusnu$ sudo gem install rails Password: Successfully installed rails-2.3.2 1 gem installed mungo:snippets snusnu$ gem list rails *** LOCAL GEMS *** rails (2.3.2) rails_datamapper (0.10.0) mungo:datamapper-on-rails snusnu$ script/generate model comment article_id:integer body:text Missing these required gems: addressable = 2.0.2 data_objects = 0.9.11 do_sqlite3 = 0.9.11 rails_datamapper = 0.9.11 You're running: ruby 1.8.7.72 at /opt/local/bin/ruby rubygems 1.3.4 at /Users/snusnu/.gem/ruby/1.8, /opt/local/lib/ruby/gems/1.8 Run `rake gems:install` to install the missing gems.
-
Dan Kubb (dkubb) July 16th, 2009 @ 01:05 PM
- Assigned user set to Dan Kubb (dkubb)
- Milestone changed from 0.10.0 to 0.10.1
-
Dan Kubb (dkubb) July 22nd, 2009 @ 03:57 PM
- State changed from confirmed to accepted
-
Dan Kubb (dkubb) October 4th, 2009 @ 09:33 PM
- Milestone changed from 0.10.1 to 0.10.2
[project:id#20609 not-tagged:"0.10.0" not-tagged:"0.10.1" milestone:id#51895 bulk edit command]
-
Dan Kubb (dkubb) February 1st, 2010 @ 04:33 PM
- Milestone changed from 0.10.2 to 1.0.0
-
-
-
Dan Kubb (dkubb) February 2nd, 2010 @ 02:47 AM
- State changed from accepted to confirmed
-
Dan Kubb (dkubb) February 5th, 2010 @ 03:21 AM
- State changed from confirmed to not-applicable
I am going to close this ticket since work is happening on rewriting the rails3_datamapper plugin from the ground up, and generators and other such tools will work fine.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »