Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

script/generate claims Post and Blog are reserved classes

#3694

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.

Reported by Ryan Bigg · January 15th, 2010 @ 01:50 AM

State: wontfix
Milestone: none
Assigned to: José Valim José Valim
Importance: High

Activity

  1. José Valim
    José Valim
    • Assigned user set to José Valim

    I cannot reproduce in a fresh app. Which steps have you done to reproduce this?

    January 15th, 2010 @ 01:35 PM

  2. Ryan Bigg
    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.

    January 15th, 2010 @ 10:31 PM

  3. José Valim
    José Valim

    How you created your app from edge rails? Which error are you getting?

    January 15th, 2010 @ 10:34 PM

  4. Ryan Bigg
    Ryan Bigg

    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.

    January 15th, 2010 @ 10:39 PM

  5. José Valim
    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 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. :)

    January 15th, 2010 @ 11:12 PM