user938363
user938363

Reputation: 10358

Why rails console did not fire up on ubuntu with rails 3.1.3

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

Answers (1)

Rick Button
Rick Button

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

Related Questions