Problems with extension generators

Hey, my friend was trying to generate a controller today and when he
tried:

script/generate extension_controller Products admin/species

He got:

The name ‘admin’ is reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

I tried myself and got the same error. Without the admin, it runs
fine. I also tried it on a fresh install, just in case it was
something I added, but got the same results.

Any ideas?

Keith B.
Tel: +49-7731-7983830
[email protected]
http://keithbingman.com

Keith B. wrote:

Hey, my friend was trying to generate a controller today and when he
tried:
script/generate extension_controller Products admin/species

He got:
The name ‘admin’ is reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

I’m getting the same error using gem 0.6.2.

Keith B. wrote:

Hey, my friend was trying to generate a controller today and when he
tried:

script/generate extension_controller Products admin/species

He got:

The name ‘admin’ is reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

I can’t reproduce the error:

$ script/generate extension Products
create vendor/extensions/products/app/controllers
create vendor/extensions/products/app/helpers
create vendor/extensions/products/app/models
create vendor/extensions/products/app/views
create vendor/extensions/products/db/migrate

$ script/generate extension_controller Products admin/species
create app/controllers/admin
create app/helpers/admin
create app/views/admin/species
create test/functional/admin

Can you provide precise steps to reproduce this in a clean project? Can
we see a list of the gems you have installed?


John L.
http://wiseheartdesign.com

I’m having the same problem. Running from the Jargon branch, latest
revision. Besides that, I have the latest gem installed, but in the
gem the error doesn’t occur.

I think running in development mode should not interfere with the
generators. I tried running in both development mode and production
mode, in both situations the error occurs.

My installed gems:

actionmailer (1.3.3)
actionpack (1.13.3)
actionwebservice (1.2.3)
activerecord (1.15.3)
activesupport (1.4.2)
cgi_multipart_eof_fix (2.1)
color-tools (1.3.0)
daemons (1.0.5)
diff-lcs (1.1.2)
fastthread (1.0)
ferret (0.10.13)
flexmock (0.6.1)
gem_plugin (0.2.2)
hoe (1.2.1)
mongrel (1.0.1)
pdf-writer (1.1.3)
postgres-pr (0.4.0)
radiant (0.6.2)
rails (1.2.3)
rake (0.7.3)
RedCloth (3.0.4)
rmagick (1.15.6)
ruby-debug (0.9.3)
ruby-debug-base (0.9.3)
rubyforge (0.4.2)
rubygems-update (0.9.4)
sources (0.0.1)
syntax (1.0.0)
transaction-simple (1.3.0)
xhtmldiff (1.0.0)
ZenTest (3.6.0)

Hope you can do anything with this information.

Edwin

Op 1-aug-2007, om 22:46 heeft David P. het volgende geschreven:

project? Can
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant

»
» Flydesign.nl - Webdevelopment & hosting
» www.flydesign.nl - 06 4147 5537
»

Edwin V. wrote:

I’m having the same problem. Running from the Jargon branch, latest
revision. Besides that, I have the latest gem installed, but in the
gem the error doesn’t occur.

I think running in development mode should not interfere with the
generators. I tried running in both development mode and production
mode, in both situations the error occurs.

$ script/generate extension ExtensionName
… correct output …

$ script/generate extension_model ExtensionName Link title:string
url:string description:text
… correct output …

$ script/generate extension_controller ExtensionName admin/links
The name ‘admin’ is reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

Local gems:
actionmailer (1.3.2)
actionpack (1.13.2)
actionwebservice (1.2.2)
activerecord (1.15.2)
activesupport (1.4.1)
capistrano (1.4.0)
cgi_multipart_eof_fix (2.1)
daemons (1.0.4)
fastthread (0.6.4.1)
gem_plugin (0.2.2)
mongrel (1.0.1)
mysql (2.7)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.0.10)
radiant (0.6.2, 0.6.1, 0.6.0)
rails (1.2.2)
rake (0.7.1)
sources (0.0.1)
termios (0.9.4)

John W. Long wrote:

Keith B. wrote:

script/generate extension_controller Products admin/species

The name ‘admin’ is reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

I can’t reproduce the error:

Can you provide precise steps to reproduce this in a clean project? Can
we see a list of the gems you have installed?

John L.

John – My errors appeared when I was running in Development mode, if
that helps any. I can get you more info tomorrow.