This project is archived and is in readonly mode.
script/generate claims Post and Blog are reserved classes
-
José Valim
- Assigned user set to José Valim
I cannot reproduce in a fresh app. Which steps have you done to reproduce this?
-
Ryan Bigg
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
How you created your app from edge rails? Which error are you getting?
-
Ryan Bigg
The script installs rails so I can just do
rails blogand 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
- 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 blogswill 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. :)