Rails console Cloud9 - Can't open console

NOTE . I solved my problem. The problem was that I was running the "rails console" command from the workspace and not from the sample_app directory.

When I try to run the "rails console" on Cloud9 I get the following. All I am trying to do is open the console - what am I missing? Thank!

~ / workspace $ rails console Usage: rails new APP_PATH [options]

Runtime parameters: ...

Rails options: ...

Description: The "rails new" command creates a new Rails application with standard directory structure and configuration at the path you specify.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

      

Example: rails new ~ / Code / Ruby / weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.

      

+3


source to share


1 answer


You may be in the directory workspace

. You should be in your app directory:

cd app_name/

      



or

cd ~/workspace/app_name/

      

+1


source







All Articles