###実現したいこと
rails cをしたいです。
新たなアプリを作るため、rails new ... でappを新規作成しました。
ある程度進んだところで、rails cをしてみたところ下記のエラーが発生し、consoleがうまく行きません。
###コード
error
1xoxonoair:NewApp XOXO$ rails c 2Usage: 3 rails new APP_PATH [options] 4 5Options: 6 [--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications) 7 -r, [--ruby=PATH] # Path to the Ruby binary of your choice 8. 9. 10.省略 11. 12. 13Rails options: 14 -h, [--help], [--no-help] # Show this help message and quit 15 -v, [--version], [--no-version] # Show Rails version number and quit 16 17Description: 18 The 'rails new' command creates a new Rails application with a default 19 directory structure and configuration at the path you specify. 20 21 You can specify extra command-line arguments to be used every time 22 'rails new' runs in the .railsrc configuration file in your home directory. 23 24 Note that the arguments specified in the .railsrc file don't affect the 25 defaults values shown above in this help message. 26 27Example: 28 rails new ~/Code/Ruby/weblog 29 30 This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
You can specify extra command-line arguments to be used every time 'rails new' runs
との指示がありますが、これがどういうことかわからずにいます。
更にExampleをみると混乱します。
XOXOディレクトリに別のRailsアプリがあると、rails consoleはうまく行かない。ということでしょうか?
そのために、Exampleのように、別ディレクトリに移動しなさいということでしょうか?
お分かりの方、ご教示いただけば幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/22 14:47