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.

rails executable's operation is confusing

#3936

If you run "rails generate controller foo" outside of a rails path, it makes a new rails app called generate. Obviously, this isn't what I intended. I'd prefer to see the rails command tell me when this happens.

Reported by Kyle Maxwell · February 12th, 2010 @ 12:07 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Kyle Maxwell
    Kyle Maxwell

    Hi all, really simple patch (with test) to make sure that "rails generate controller foo" doesn't create an application called generate, because you misused it outside of the path of a rails app. Not urgennt; just a little polish that I think would be nice for the 3.0final.

    February 12th, 2010 @ 12:09 AM

  2. Kyle Maxwell
    Kyle Maxwell
    • Tag changed from minor, patch, tested to rails3 generators, minor, patch, rails3, tested

    February 12th, 2010 @ 05:15 PM

  3. José Valim
    José Valim
    • State changed from new to resolved

    Applied. Thanks!

    February 16th, 2010 @ 11:31 PM