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.

Make 's' reserved word in 'rails ...' command

#4602

When you try run 'rails server' in non rails applications dir script fail with error:

Invalid application name server. Please give a name which does not match one of the reserved rails words.

But when you try run server with 's' alias in non rails applications dir script generate new application named 's'.

Reported by Sasha Koss · May 15th, 2010 @ 01:48 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. Sasha Koss
    Sasha Koss

    Same for:

    • g — generate
    • c — console
    • db — dbconsole

    May 15th, 2010 @ 01:54 PM

  2. Sasha Koss
    Sasha Koss
    • Tag changed from rails server, rails3 to rails server, patch, rails3

    Attached patch

    May 15th, 2010 @ 02:32 PM

  3. Sasha Koss
    Sasha Koss
    • Tag changed from rails server, patch, rails3 to rails server, bugmash, patch, rails3

    May 16th, 2010 @ 01:28 AM

  4. Sasha Koss
    Sasha Koss
    • Assigned user set to José Valim

    May 16th, 2010 @ 03:31 AM

  5. Simon Jefford
    Simon Jefford

    Added a test to the patch - authorship has been retained.

    +1 verified

    May 16th, 2010 @ 05:46 PM

  6. José Valim
    José Valim
    • Milestone cleared.
    • State changed from new to open

    Great work guys! Simon, if you prefer, you can add tests in a separate patch, so you both get authorship!

    May 16th, 2010 @ 05:48 PM

  7. Simon Jefford
  8. Repository
    Repository
    • State changed from open to resolved

    (from [b7bdacf1abb71ec2b46ea54893fb881dea36cca8]) Added rails command aliases (s g c db) to reserved words in app generator [#4602 Make 's' reserved word in 'rails ...' command state:resolved]

    Signed-off-by: José Valim jose.valim@gmail.com
    http://github.com/rails/rails/commit/b7bdacf1abb71ec2b46ea54893fb88...

    May 16th, 2010 @ 06:15 PM

  9. Repository
  10. José Valim
    José Valim
    • Tag changed from rails server, bugmash, patch, rails3 to rails server, patch, rails3

    May 16th, 2010 @ 06:16 PM

  11. Jeremy Kemper
  12. bingbing