This project is archived and is in readonly mode.
script/generate claims Post and Blog are reserved classes
Reported by Ryan Bigg | January 15th, 2010 @ 01:50 AM
Exactly that. I can't script/generate model post or script/generate model blog. I would think these would be kind of important, since that's what the screencast on rubyonrails.org does.
Comments and changes to this ticket
-
José Valim January 15th, 2010 @ 01:35 PM
- Assigned user set to José Valim
I cannot reproduce in a fresh app. Which steps have you done to reproduce this?
-
Ryan Bigg January 15th, 2010 @ 10:31 PM
I've used my own script: http://ryanbigg.com/ruby/1.9.1-edge-rails and then tried doing those script/generate commands.
-
José Valim January 15th, 2010 @ 10:34 PM
How you created your app from edge rails? Which error are you getting?
-
Ryan Bigg January 15th, 2010 @ 10:39 PM
The script installs rails so I can just do
rails blog
and it will create it. The error I am getting is:The name Post is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
-
José Valim January 15th, 2010 @ 11:12 PM
- State changed from new to wontfix
When you do
rails blog
, it will create a Blog::Application (take a look at your config/application.rb), so yes, Blog will be reserved.rails blogs
will probably work without problems.And I could not duplicate the Post bug though, even running from gem. Marking as won't fix.
Notice that more information about what you've done to create a bug always helps. So if possible, try to add the maximum information possible when creating a ticket please. :)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>