This project is archived and is in readonly mode.

#3936 ✓resolved
Kyle Maxwell

rails executable's operation is confusing

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

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.

Comments and changes to this ticket

  • Kyle Maxwell

    Kyle Maxwell February 12th, 2010 @ 12:09 AM

    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.

  • Kyle Maxwell

    Kyle Maxwell February 12th, 2010 @ 05:15 PM

    • Tag changed from minor, patch, tested to rails3 generators, minor, patch, rails3, tested
  • José Valim

    José Valim February 16th, 2010 @ 11:31 PM

    • State changed from “new” to “resolved”

    Applied. Thanks!

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>

People watching this ticket

Attachments

Pages