0

a silly question:

when i run rails in an rails app , it shows

Usage: rails COMMAND [ARGS]

The most common rails commands are:
generate    Generate new code (short-cut alias: "g")
.....

but outside from rails app, it shows:

Usage:
rails new APP_PATH [options]

Options:
 -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
 .....

why ?

1 Answer 1

1

If you check sources you will see that it basically checks for existence of './script/rails' and runs it if it's found. So if there's no such - it just shows different output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.