質問編集履歴
2
rails routes後の表記を追記しました。マークダウン記法に誤って反応してしまうため、Default直前に(a)を挿入していますがこれは本来無いものですので無視してください。
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,130 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
#### rails routes後の表記
|
72
|
+
|
73
|
+
Usage:
|
74
|
+
|
75
|
+
rails new APP_PATH [options]
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
Options:
|
80
|
+
|
81
|
+
[--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications)
|
82
|
+
|
83
|
+
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
|
84
|
+
|
85
|
+
(a) # Default: /usr/local/rvm/rubies/ruby-2.4.1/bin/ruby
|
86
|
+
|
87
|
+
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
|
88
|
+
|
89
|
+
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
|
90
|
+
|
91
|
+
(a) # Default: sqlite3
|
92
|
+
|
93
|
+
[--skip-yarn], [--no-skip-yarn] # Don't use Yarn for managing JavaScript dependencies
|
94
|
+
|
95
|
+
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
|
96
|
+
|
97
|
+
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
|
98
|
+
|
99
|
+
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
|
100
|
+
|
101
|
+
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
|
102
|
+
|
103
|
+
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
|
104
|
+
|
105
|
+
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
|
106
|
+
|
107
|
+
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
|
108
|
+
|
109
|
+
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
|
110
|
+
|
111
|
+
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
|
112
|
+
|
113
|
+
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
|
114
|
+
|
115
|
+
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
|
116
|
+
|
117
|
+
[--skip-coffee], [--no-skip-coffee] # Don't use CoffeeScript
|
118
|
+
|
119
|
+
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
|
120
|
+
|
121
|
+
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
|
122
|
+
|
123
|
+
-T, [--skip-test], [--no-skip-test] # Skip test files
|
124
|
+
|
125
|
+
[--skip-system-test], [--no-skip-system-test] # Skip system test files
|
126
|
+
|
127
|
+
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
|
128
|
+
|
129
|
+
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
|
130
|
+
|
131
|
+
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
|
132
|
+
|
133
|
+
[--rc=RC] # Path to file containing extra configuration options for rails command
|
134
|
+
|
135
|
+
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
|
136
|
+
|
137
|
+
[--api], [--no-api] # Preconfigure smaller stack for API only apps
|
138
|
+
|
139
|
+
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
|
140
|
+
|
141
|
+
[--webpack=WEBPACK] # Preconfigure for app-like JavaScript with Webpack (options: react/vue/angular/elm/stimulus)
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
Runtime options:
|
146
|
+
|
147
|
+
-f, [--force] # Overwrite files that already exist
|
148
|
+
|
149
|
+
-p, [--pretend], [--no-pretend] # Run but do not make any changes
|
150
|
+
|
151
|
+
-q, [--quiet], [--no-quiet] # Suppress status output
|
152
|
+
|
153
|
+
-s, [--skip], [--no-skip] # Skip files that already exist
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
Rails options:
|
158
|
+
|
159
|
+
-h, [--help], [--no-help] # Show this help message and quit
|
160
|
+
|
161
|
+
-v, [--version], [--no-version] # Show Rails version number and quit
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
Description:
|
166
|
+
|
167
|
+
The 'rails new' command creates a new Rails application with a default
|
168
|
+
|
169
|
+
directory structure and configuration at the path you specify.
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
You can specify extra command-line arguments to be used every time
|
174
|
+
|
175
|
+
'rails new' runs in the .railsrc configuration file in your home directory.
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
Note that the arguments specified in the .railsrc file don't affect the
|
180
|
+
|
181
|
+
defaults values shown above in this help message.
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
Example:
|
186
|
+
|
187
|
+
rails new ~/Code/Ruby/weblog
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
|
192
|
+
|
193
|
+
|
194
|
+
|
71
195
|
|
72
196
|
|
73
197
|
#### 補足の補足
|
1
rake routes後に現れる文章を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,26 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
+
#### rake routes後の表記
|
56
|
+
|
57
|
+
rake aborted!
|
58
|
+
|
59
|
+
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
|
60
|
+
|
61
|
+
/usr/local/rvm/gems/ruby-2.4.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
|
62
|
+
|
63
|
+
/usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
|
64
|
+
|
65
|
+
/usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
|
66
|
+
|
67
|
+
(See full trace by running task with --trace)
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
#### 補足の補足
|
74
|
+
|
55
75
|
関係あるのかわかりませんが、チュートリアルで指定されたRailsのバージョン5.1.4がうまく反映されずになぜか5.1.6が反映されます。
|
56
76
|
|
57
77
|
もしこちらも影響あるようでしたらご指摘いただけますと幸いです。
|