質問編集履歴
5
タグ変更
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
4
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
rails g devise Userが実行されない
|
test
CHANGED
@@ -2,16 +2,204 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
rails g devise Userを実行したい
|
6
6
|
|
7
7
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
|
+
rails g devise Userが実行できません。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### 該当のソースコード
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
```Gemfile
|
22
|
+
|
23
|
+
source 'https://rubygems.org'
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
git_source(:github) do |repo_name|
|
28
|
+
|
29
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
30
|
+
|
31
|
+
"https://github.com/#{repo_name}.git"
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
40
|
+
|
41
|
+
gem 'rails', '~> 5.0.6'
|
42
|
+
|
43
|
+
# Use mysql as the database for Active Record
|
44
|
+
|
45
|
+
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
46
|
+
|
47
|
+
# Use Puma as the app server
|
48
|
+
|
49
|
+
gem 'puma', '~> 3.0'
|
50
|
+
|
51
|
+
# Use SCSS for stylesheets
|
52
|
+
|
53
|
+
gem 'sass-rails', '~> 5.0'
|
54
|
+
|
55
|
+
# Use Uglifier as compressor for JavaScript assets
|
56
|
+
|
57
|
+
gem 'uglifier', '>= 1.3.0'
|
58
|
+
|
59
|
+
# Use CoffeeScript for .coffee assets and views
|
60
|
+
|
61
|
+
gem 'coffee-rails', '~> 4.2'
|
62
|
+
|
63
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
64
|
+
|
65
|
+
# gem 'therubyracer', platforms: :ruby
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# Use jquery as the JavaScript library
|
70
|
+
|
71
|
+
gem 'jquery-rails'
|
72
|
+
|
73
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
74
|
+
|
75
|
+
gem 'turbolinks', '~> 5'
|
76
|
+
|
77
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
78
|
+
|
79
|
+
gem 'jbuilder', '~> 2.5'
|
80
|
+
|
81
|
+
# Use Redis adapter to run Action Cable in production
|
82
|
+
|
11
|
-
gem
|
83
|
+
# gem 'redis', '~> 3.0'
|
84
|
+
|
85
|
+
# Use ActiveModel has_secure_password
|
86
|
+
|
87
|
+
# gem 'bcrypt', '~> 3.1.7'
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
# Use Capistrano for deployment
|
92
|
+
|
93
|
+
# gem 'capistrano-rails', group: :development
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
group :development, :test do
|
98
|
+
|
99
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
100
|
+
|
101
|
+
gem 'byebug', platform: :mri
|
102
|
+
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
group :development do
|
108
|
+
|
109
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
110
|
+
|
111
|
+
gem 'web-console', '>= 3.3.0'
|
112
|
+
|
113
|
+
gem 'listen', '~> 3.0.5'
|
114
|
+
|
115
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
116
|
+
|
117
|
+
gem 'spring'
|
118
|
+
|
119
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
120
|
+
|
121
|
+
end
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
126
|
+
|
127
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
gem 'kaminari'
|
132
|
+
|
133
|
+
gem 'pry-byebug', group: :development
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
#PostgreSQLの設定(Heroku用)
|
138
|
+
|
139
|
+
group :production do
|
140
|
+
|
141
|
+
gem 'pg', '0.21.0'
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
gem 'devise'
|
12
146
|
|
13
147
|
```
|
14
148
|
|
149
|
+
```
|
150
|
+
|
151
|
+
Please choose a generator below.
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
Rails:
|
156
|
+
|
157
|
+
assets
|
158
|
+
|
159
|
+
channel
|
160
|
+
|
161
|
+
controller
|
162
|
+
|
163
|
+
generator
|
164
|
+
|
165
|
+
helper
|
166
|
+
|
167
|
+
integration_test
|
168
|
+
|
169
|
+
jbuilder
|
170
|
+
|
171
|
+
job
|
172
|
+
|
173
|
+
mailer
|
174
|
+
|
175
|
+
migration
|
176
|
+
|
177
|
+
model
|
178
|
+
|
179
|
+
resource
|
180
|
+
|
181
|
+
responders_controller
|
182
|
+
|
183
|
+
scaffold
|
184
|
+
|
185
|
+
scaffold_controller
|
186
|
+
|
187
|
+
task
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
ActiveRecord:
|
192
|
+
|
193
|
+
active_record:devise
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
Coffee:
|
198
|
+
|
199
|
+
coffee:assets
|
200
|
+
|
201
|
+
|
202
|
+
|
15
203
|
Devise:
|
16
204
|
|
17
205
|
devise
|
@@ -22,268 +210,56 @@
|
|
22
210
|
|
23
211
|
devise:views
|
24
212
|
|
213
|
+
|
214
|
+
|
215
|
+
Js:
|
216
|
+
|
217
|
+
js:assets
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
Kaminari:
|
222
|
+
|
223
|
+
kaminari:config
|
224
|
+
|
225
|
+
kaminari:views
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
Mongoid:
|
230
|
+
|
231
|
+
mongoid:devise
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
Responders:
|
236
|
+
|
237
|
+
responders:install
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
TestUnit:
|
242
|
+
|
243
|
+
test_unit:controller
|
244
|
+
|
245
|
+
test_unit:generator
|
246
|
+
|
247
|
+
test_unit:helper
|
248
|
+
|
249
|
+
test_unit:integration
|
250
|
+
|
251
|
+
test_unit:job
|
252
|
+
|
253
|
+
test_unit:mailer
|
254
|
+
|
255
|
+
test_unit:model
|
256
|
+
|
257
|
+
test_unit:plugin
|
258
|
+
|
259
|
+
test_unit:scaffold
|
260
|
+
|
25
261
|
```
|
26
262
|
|
27
|
-
となり、
|
28
|
-
|
29
|
-
```
|
30
|
-
|
31
|
-
devise:User
|
32
|
-
|
33
|
-
```
|
34
|
-
|
35
|
-
だけ作成されません。
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
### 該当のソースコード
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
```Gemfile
|
46
|
-
|
47
|
-
source 'https://rubygems.org'
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
git_source(:github) do |repo_name|
|
52
|
-
|
53
|
-
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
54
|
-
|
55
|
-
"https://github.com/#{repo_name}.git"
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
64
|
-
|
65
|
-
gem 'rails', '~> 5.0.6'
|
66
|
-
|
67
|
-
# Use mysql as the database for Active Record
|
68
|
-
|
69
|
-
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
70
|
-
|
71
|
-
# Use Puma as the app server
|
72
|
-
|
73
|
-
gem 'puma', '~> 3.0'
|
74
|
-
|
75
|
-
# Use SCSS for stylesheets
|
76
|
-
|
77
|
-
gem 'sass-rails', '~> 5.0'
|
78
|
-
|
79
|
-
# Use Uglifier as compressor for JavaScript assets
|
80
|
-
|
81
|
-
gem 'uglifier', '>= 1.3.0'
|
82
|
-
|
83
|
-
# Use CoffeeScript for .coffee assets and views
|
84
|
-
|
85
|
-
gem 'coffee-rails', '~> 4.2'
|
86
|
-
|
87
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
88
|
-
|
89
|
-
# gem 'therubyracer', platforms: :ruby
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
# Use jquery as the JavaScript library
|
94
|
-
|
95
|
-
gem 'jquery-rails'
|
96
|
-
|
97
|
-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
98
|
-
|
99
|
-
gem 'turbolinks', '~> 5'
|
100
|
-
|
101
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
102
|
-
|
103
|
-
gem 'jbuilder', '~> 2.5'
|
104
|
-
|
105
|
-
# Use Redis adapter to run Action Cable in production
|
106
|
-
|
107
|
-
# gem 'redis', '~> 3.0'
|
108
|
-
|
109
|
-
# Use ActiveModel has_secure_password
|
110
|
-
|
111
|
-
# gem 'bcrypt', '~> 3.1.7'
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
# Use Capistrano for deployment
|
116
|
-
|
117
|
-
# gem 'capistrano-rails', group: :development
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
group :development, :test do
|
122
|
-
|
123
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
124
|
-
|
125
|
-
gem 'byebug', platform: :mri
|
126
|
-
|
127
|
-
end
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
group :development do
|
132
|
-
|
133
|
-
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
134
|
-
|
135
|
-
gem 'web-console', '>= 3.3.0'
|
136
|
-
|
137
|
-
gem 'listen', '~> 3.0.5'
|
138
|
-
|
139
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
140
|
-
|
141
|
-
gem 'spring'
|
142
|
-
|
143
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
144
|
-
|
145
|
-
end
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
150
|
-
|
151
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
gem 'kaminari'
|
156
|
-
|
157
|
-
gem 'pry-byebug', group: :development
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
#PostgreSQLの設定(Heroku用)
|
162
|
-
|
163
|
-
group :production do
|
164
|
-
|
165
|
-
gem 'pg', '0.21.0'
|
166
|
-
|
167
|
-
end
|
168
|
-
|
169
|
-
gem 'devise'
|
170
|
-
|
171
|
-
```
|
172
|
-
|
173
|
-
```
|
174
|
-
|
175
|
-
Please choose a generator below.
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
Rails:
|
180
|
-
|
181
|
-
assets
|
182
|
-
|
183
|
-
channel
|
184
|
-
|
185
|
-
controller
|
186
|
-
|
187
|
-
generator
|
188
|
-
|
189
|
-
helper
|
190
|
-
|
191
|
-
integration_test
|
192
|
-
|
193
|
-
jbuilder
|
194
|
-
|
195
|
-
job
|
196
|
-
|
197
|
-
mailer
|
198
|
-
|
199
|
-
migration
|
200
|
-
|
201
|
-
model
|
202
|
-
|
203
|
-
resource
|
204
|
-
|
205
|
-
responders_controller
|
206
|
-
|
207
|
-
scaffold
|
208
|
-
|
209
|
-
scaffold_controller
|
210
|
-
|
211
|
-
task
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
ActiveRecord:
|
216
|
-
|
217
|
-
active_record:devise
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
Coffee:
|
222
|
-
|
223
|
-
coffee:assets
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
Devise:
|
228
|
-
|
229
|
-
devise
|
230
|
-
|
231
|
-
devise:controllers
|
232
|
-
|
233
|
-
devise:install
|
234
|
-
|
235
|
-
devise:views
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
Js:
|
240
|
-
|
241
|
-
js:assets
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
Kaminari:
|
246
|
-
|
247
|
-
kaminari:config
|
248
|
-
|
249
|
-
kaminari:views
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
Mongoid:
|
254
|
-
|
255
|
-
mongoid:devise
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
Responders:
|
260
|
-
|
261
|
-
responders:install
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
TestUnit:
|
266
|
-
|
267
|
-
test_unit:controller
|
268
|
-
|
269
|
-
test_unit:generator
|
270
|
-
|
271
|
-
test_unit:helper
|
272
|
-
|
273
|
-
test_unit:integration
|
274
|
-
|
275
|
-
test_unit:job
|
276
|
-
|
277
|
-
test_unit:mailer
|
278
|
-
|
279
|
-
test_unit:model
|
280
|
-
|
281
|
-
test_unit:plugin
|
282
|
-
|
283
|
-
test_unit:scaffold
|
284
|
-
|
285
|
-
```
|
286
|
-
|
287
263
|
|
288
264
|
|
289
265
|
### 試したこと
|
3
タグの変更
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
gem 'devise'について
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
gem 'devise' で devise:User だけ作成されない
|
test
CHANGED
@@ -2,25 +2,37 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
######
|
5
|
+
###### devise:Userをインストールしたい
|
6
6
|
|
7
7
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
|
+
gemfileにgem'devise'を追加してbundle installすると、
|
12
|
+
|
11
|
-
```
|
13
|
+
```
|
14
|
+
|
12
|
-
|
15
|
+
Devise:
|
16
|
+
|
17
|
+
devise
|
18
|
+
|
13
|
-
|
19
|
+
devise:controllers
|
20
|
+
|
14
|
-
|
21
|
+
devise:install
|
22
|
+
|
15
|
-
|
23
|
+
devise:views
|
16
|
-
|
24
|
+
|
17
|
-
```
|
25
|
+
```
|
18
|
-
|
26
|
+
|
19
|
-
|
27
|
+
となり、
|
20
|
-
|
28
|
+
|
21
|
-
```
|
29
|
+
```
|
30
|
+
|
22
|
-
|
31
|
+
devise:User
|
32
|
+
|
33
|
+
```
|
34
|
+
|
23
|
-
|
35
|
+
だけ作成されません。
|
24
36
|
|
25
37
|
|
26
38
|
|
@@ -96,7 +108,7 @@
|
|
96
108
|
|
97
109
|
# Use ActiveModel has_secure_password
|
98
110
|
|
99
|
-
gem 'bcrypt', '~> 3.1.7'
|
111
|
+
# gem 'bcrypt', '~> 3.1.7'
|
100
112
|
|
101
113
|
|
102
114
|
|
@@ -138,13 +150,15 @@
|
|
138
150
|
|
139
151
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
140
152
|
|
153
|
+
|
154
|
+
|
141
155
|
gem 'kaminari'
|
142
156
|
|
143
|
-
|
144
|
-
|
145
|
-
gem 'nokogiri'
|
146
|
-
|
147
|
-
gem '
|
157
|
+
gem 'pry-byebug', group: :development
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
#PostgreSQLの設定(Heroku用)
|
148
162
|
|
149
163
|
group :production do
|
150
164
|
|
@@ -152,7 +166,121 @@
|
|
152
166
|
|
153
167
|
end
|
154
168
|
|
155
|
-
gem '
|
169
|
+
gem 'devise'
|
170
|
+
|
171
|
+
```
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
Please choose a generator below.
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
Rails:
|
180
|
+
|
181
|
+
assets
|
182
|
+
|
183
|
+
channel
|
184
|
+
|
185
|
+
controller
|
186
|
+
|
187
|
+
generator
|
188
|
+
|
189
|
+
helper
|
190
|
+
|
191
|
+
integration_test
|
192
|
+
|
193
|
+
jbuilder
|
194
|
+
|
195
|
+
job
|
196
|
+
|
197
|
+
mailer
|
198
|
+
|
199
|
+
migration
|
200
|
+
|
201
|
+
model
|
202
|
+
|
203
|
+
resource
|
204
|
+
|
205
|
+
responders_controller
|
206
|
+
|
207
|
+
scaffold
|
208
|
+
|
209
|
+
scaffold_controller
|
210
|
+
|
211
|
+
task
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
ActiveRecord:
|
216
|
+
|
217
|
+
active_record:devise
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
Coffee:
|
222
|
+
|
223
|
+
coffee:assets
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
Devise:
|
228
|
+
|
229
|
+
devise
|
230
|
+
|
231
|
+
devise:controllers
|
232
|
+
|
233
|
+
devise:install
|
234
|
+
|
235
|
+
devise:views
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
Js:
|
240
|
+
|
241
|
+
js:assets
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
Kaminari:
|
246
|
+
|
247
|
+
kaminari:config
|
248
|
+
|
249
|
+
kaminari:views
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
Mongoid:
|
254
|
+
|
255
|
+
mongoid:devise
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
Responders:
|
260
|
+
|
261
|
+
responders:install
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
TestUnit:
|
266
|
+
|
267
|
+
test_unit:controller
|
268
|
+
|
269
|
+
test_unit:generator
|
270
|
+
|
271
|
+
test_unit:helper
|
272
|
+
|
273
|
+
test_unit:integration
|
274
|
+
|
275
|
+
test_unit:job
|
276
|
+
|
277
|
+
test_unit:mailer
|
278
|
+
|
279
|
+
test_unit:model
|
280
|
+
|
281
|
+
test_unit:plugin
|
282
|
+
|
283
|
+
test_unit:scaffold
|
156
284
|
|
157
285
|
```
|
158
286
|
|
@@ -160,17 +288,7 @@
|
|
160
288
|
|
161
289
|
### 試したこと
|
162
290
|
|
163
|
-
|
164
|
-
|
165
|
-
|
291
|
+
gitで前のヴァージョンに戻すなどして試しましたが、結果は同じでした。
|
166
|
-
|
167
|
-
また、ルートディレクトリに``index.php``を置くと修正されるという記事を読み実行しましたが変わらずでした。
|
168
|
-
|
169
|
-
[https://github.com/yFGq-Ziw/kadai-monolist](https://github.com/yFGq-Ziw/kadai-monolist)
|
170
|
-
|
171
|
-
GitHubはこちらです。よろしくお願いいたします。
|
172
|
-
|
173
|
-
|
174
292
|
|
175
293
|
### 補足情報(FW/ツールのバージョンなど)
|
176
294
|
|
1
GitHUbのリンクを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
herokuにアプリを正常にデプロイしたいです。
|
5
|
+
###### herokuにアプリを正常にデプロイしたいです。
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -166,6 +166,10 @@
|
|
166
166
|
|
167
167
|
また、ルートディレクトリに``index.php``を置くと修正されるという記事を読み実行しましたが変わらずでした。
|
168
168
|
|
169
|
+
[https://github.com/yFGq-Ziw/kadai-monolist](https://github.com/yFGq-Ziw/kadai-monolist)
|
170
|
+
|
171
|
+
GitHubはこちらです。よろしくお願いいたします。
|
172
|
+
|
169
173
|
|
170
174
|
|
171
175
|
### 補足情報(FW/ツールのバージョンなど)
|