Reputation: 10358
When type rails console
under the deploy subdir on ubuntu, instead of firing up the console, it displays help message for rails:
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
However irb
can fire up without error. Anyone knows why? Thanks so much.
Upvotes: 0
Views: 270
Reputation: 1212
Check this answer here: typing 'rails console' doesn't start?
You need to make sure that your current directory is the base directory of a rails app, because the rails console
command needs to load the environment of that app.
Upvotes: 1