# Problems with extension generators

**URL:** <https://www.ruby-forum.com/t/problems-with-extension-generators/110214>\
**Category:** Radiant CMS\
**Created:** [July 24, 2007, 10:37am UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214 "2007-07-24T10:37:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [July 24, 2007, 10:37am UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/1 "2007-07-24T10:37:22Z")

</div>

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  
removed\_email\_address@domain.invalid  
[http://keithbingman.com](http://keithbingman.com)

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [July 30, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/2 "2007-07-30T22:54:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [August 1, 2007, 3:41am UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/3 "2007-08-01T03:41:06Z")

</div>

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](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [August 2, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/4 "2007-08-02T19:47:57Z")

</div>

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: removed\_email\_address@domain.invalid  
> > Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

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

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [August 3, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/5 "2007-08-03T22:10:11Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [August 1, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/problems-with-extension-generators/110214/6 "2007-08-01T22:46:46Z")

</div>

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.
