質問編集履歴

3

追記

2017/05/04 09:35

投稿

sakas1231
sakas1231

スコア42

test CHANGED
File without changes
test CHANGED
@@ -180,6 +180,96 @@
180
180
 
181
181
 
182
182
 
183
+ 今入っているRailsのバージョンを確認しようと
184
+
185
+ $ rails --version
186
+
187
+ と打ったところ
188
+
189
+ ```
190
+
191
+ Bundler could not find compatible versions for gem "activesupport":
192
+
193
+ In snapshot (Gemfile.lock):
194
+
195
+ activesupport (= 5.0.2)
196
+
197
+
198
+
199
+ In Gemfile:
200
+
201
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
202
+
203
+ activejob (= 5.1.0) was resolved to 5.1.0, which depends on
204
+
205
+ globalid (>= 0.3.6) was resolved to 0.4.0, which depends on
206
+
207
+ activesupport (>= 4.2.0)
208
+
209
+
210
+
211
+ jbuilder (~> 2.0) was resolved to 2.6.3, which depends on
212
+
213
+ activesupport (< 5.2, >= 3.0.0)
214
+
215
+
216
+
217
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
218
+
219
+ activesupport (= 5.1.0)
220
+
221
+
222
+
223
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
224
+
225
+ activesupport (= 5.1.0)
226
+
227
+
228
+
229
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
230
+
231
+ activesupport (= 5.1.0)
232
+
233
+
234
+
235
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
236
+
237
+ actionmailer (= 5.1.0) was resolved to 5.1.0, which depends on
238
+
239
+ rails-dom-testing (~> 2.0) was resolved to 2.0.2, which depends on
240
+
241
+ activesupport (< 6.0, >= 4.2.0)
242
+
243
+
244
+
245
+ spring was resolved to 2.0.1, which depends on
246
+
247
+ activesupport (>= 4.2)
248
+
249
+
250
+
251
+ rails (~> 5.1.0) was resolved to 5.1.0, which depends on
252
+
253
+ sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
254
+
255
+ activesupport (>= 4.0)
256
+
257
+
258
+
259
+ Running `bundle update` will rebuild your snapshot from scratch, using only
260
+
261
+ the gems in your Gemfile, which may resolve the conflict.
262
+
263
+ ```
264
+
265
+
266
+
267
+ 現在のrailsのバージョンすら確認できない状態です...
268
+
269
+
270
+
271
+
272
+
183
273
 
184
274
 
185
275
  Runに関しては、Cloud9の上にあるRUNボタンを押しました。

2

質問の返答

2017/05/04 09:35

投稿

sakas1231
sakas1231

スコア42

test CHANGED
File without changes
test CHANGED
@@ -177,3 +177,9 @@
177
177
  ```
178
178
 
179
179
  となってしまいました...
180
+
181
+
182
+
183
+
184
+
185
+ Runに関しては、Cloud9の上にあるRUNボタンを押しました。

1

質問の返答

2017/05/04 09:20

投稿

sakas1231
sakas1231

スコア42

test CHANGED
File without changes
test CHANGED
@@ -139,3 +139,41 @@
139
139
 
140
140
 
141
141
  回答の方よろしくお願いいたします。
142
+
143
+
144
+
145
+
146
+
147
+ ####追記
148
+
149
+ bundle installをすると
150
+
151
+ ```
152
+
153
+ Could not locate Gemfile
154
+
155
+
156
+
157
+ ```
158
+
159
+ となってしまいました
160
+
161
+ そこで
162
+
163
+ ```
164
+
165
+ gem install rails --version5.0.0.1
166
+
167
+ ```
168
+
169
+ と入力したところ
170
+
171
+ ```
172
+
173
+ ERROR: While executing gem ... (OptionParser::InvalidOption)
174
+
175
+ invalid option: --version5.0.0.1
176
+
177
+ ```
178
+
179
+ となってしまいました...