質問編集履歴

6

エラーを追加

2021/10/30 02:29

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
File without changes
test CHANGED
@@ -94,7 +94,7 @@
94
94
 
95
95
  Started POST "/__better_errors/30db173a3c039884/variables" for 127.0.0.1 at 2021-10-25 09:45:40 +0900
96
96
 
97
-
97
+ Since there is no EDITOR or BETTER_ERRORS_EDITOR environment variable, using Textmate by default.
98
98
 
99
99
  ```
100
100
 

5

gemfileを追加

2021/10/30 02:29

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
File without changes
test CHANGED
@@ -110,6 +110,138 @@
110
110
 
111
111
 
112
112
 
113
+ ■Gemfile
114
+
115
+ ```Ruby
116
+
117
+ source 'https://rubygems.org'
118
+
119
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
120
+
121
+
122
+
123
+ ruby '3.0.0'
124
+
125
+
126
+
127
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
128
+
129
+ gem 'rails', '~> 6.1.4', '>= 6.1.4.1'
130
+
131
+ # Use sqlite3 as the database for Active Record
132
+
133
+ gem 'sqlite3', '~> 1.4'
134
+
135
+ # Use Puma as the app server
136
+
137
+ gem 'puma', '~> 5.0'
138
+
139
+ # Use SCSS for stylesheets
140
+
141
+ gem 'sass-rails', '>= 6'
142
+
143
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
144
+
145
+ gem 'webpacker', '~> 5.0'
146
+
147
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
148
+
149
+ gem 'turbolinks', '~> 5'
150
+
151
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
152
+
153
+ gem 'jbuilder', '~> 2.7'
154
+
155
+ # Use Redis adapter to run Action Cable in production
156
+
157
+ # gem 'redis', '~> 4.0'
158
+
159
+ # Use Active Model has_secure_password
160
+
161
+ # gem 'bcrypt', '~> 3.1.7'
162
+
163
+ # gem 'bcrypt-ruby', '3.1.5', :require => 'bcrypt'
164
+
165
+
166
+
167
+ # Use Active Storage variant
168
+
169
+ # gem 'image_processing', '~> 1.2'
170
+
171
+
172
+
173
+ # Reduces boot times through caching; required in config/boot.rb
174
+
175
+ gem 'bootsnap', '>= 1.4.4', require: false
176
+
177
+
178
+
179
+ gem 'devise'
180
+
181
+
182
+
183
+ group :development, :test do
184
+
185
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
186
+
187
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
188
+
189
+ end
190
+
191
+
192
+
193
+ group :development do
194
+
195
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
196
+
197
+ gem 'web-console', '>= 4.1.0'
198
+
199
+ # Display performance information such as SQL time and flame graphs for each request in your browser.
200
+
201
+ # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
202
+
203
+ gem 'rack-mini-profiler', '~> 2.0'
204
+
205
+ gem 'listen', '~> 3.3'
206
+
207
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
208
+
209
+ gem 'spring'
210
+
211
+ gem 'better_errors'
212
+
213
+ gem 'binding_of_caller'
214
+
215
+ end
216
+
217
+
218
+
219
+ group :test do
220
+
221
+ # Adds support for Capybara system testing and selenium driver
222
+
223
+ gem 'capybara', '>= 3.26'
224
+
225
+ gem 'selenium-webdriver'
226
+
227
+ # Easy installation and use of web drivers to run system tests with browsers
228
+
229
+ gem 'webdrivers'
230
+
231
+ end
232
+
233
+
234
+
235
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
236
+
237
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
238
+
239
+
240
+
241
+ ```
242
+
243
+
244
+
113
245
  ■やったこと1
114
246
 
115
247
  「/Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle」を削除したが、

4

やったことを追加

2021/10/30 02:07

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
File without changes
test CHANGED
@@ -110,7 +110,7 @@
110
110
 
111
111
 
112
112
 
113
- ■やったこと
113
+ ■やったこと1
114
114
 
115
115
  「/Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle」を削除したが、
116
116
 
@@ -118,4 +118,12 @@
118
118
 
119
119
 
120
120
 
121
+ ■やったこと2
122
+
123
+ 「rbenv uninstall bcrypt」を実行したが、「rbenv: version `bcrypt' not installed」となり、
124
+
125
+ bcryptはインストールされていなかった。
126
+
127
+
128
+
121
129
  以上、ご教授いただけますと幸いです。

3

エラー内容を追加

2021/10/30 01:51

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
File without changes
test CHANGED
@@ -46,11 +46,53 @@
46
46
 
47
47
  ```ruby
48
48
 
49
+ Started GET "/users/sign_up" for 127.0.0.1 at 2021-10-25 09:45:00 +0900
50
+
51
+ Processing by Devise::RegistrationsController#new as HTML
52
+
53
+ Rendering layout layouts/application.html.erb
54
+
55
+ Rendering users/registrations/new.html.erb within layouts/application
56
+
57
+ Rendered users/shared/_error_messages.html.erb (Duration: 0.9ms | Allocations: 223)
58
+
59
+ Rendered users/shared/_links.html.erb (Duration: 1.2ms | Allocations: 533)
60
+
61
+ Rendered users/registrations/new.html.erb within layouts/application (Duration: 13.3ms | Allocations: 5339)
62
+
63
+ [Webpacker] Everything's up-to-date. Nothing to do
64
+
65
+ Rendered layout layouts/application.html.erb (Duration: 21.0ms | Allocations: 10257)
66
+
67
+ Completed 200 OK in 45ms (Views: 25.2ms | ActiveRecord: 1.2ms | Allocations: 20580)
68
+
69
+
70
+
71
+
72
+
73
+ Started POST "/users" for 127.0.0.1 at 2021-10-25 09:45:40 +0900
74
+
75
+ Processing by Devise::RegistrationsController#create as HTML
76
+
77
+ Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"user_name"=>"test9999", "email"=>"test9999@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
78
+
79
+ Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.0ms | Allocations: 6201)
80
+
81
+
82
+
83
+
84
+
85
+
86
+
49
87
  LoadError - dlopen(/Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle, 9): no suitable image found. Did find:
50
88
 
51
89
  /Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle: mach-o, but wrong architecture
52
90
 
53
91
  /Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle: mach-o, but wrong architecture - /Users/my_name/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bcrypt-3.1.16/lib/bcrypt_ext.bundle:
92
+
93
+
94
+
95
+ Started POST "/__better_errors/30db173a3c039884/variables" for 127.0.0.1 at 2021-10-25 09:45:40 +0900
54
96
 
55
97
 
56
98
 

2

誤字の編集

2021/10/30 01:49

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,7 @@
64
64
 
65
65
  「gem 'bcrypt', '~> 3.1.7'」はコメントアウトされたままだが、「bcrypt (3.1.16)」はインストールされている。
66
66
 
67
-  →おそらく、deviseインストール時にbcryptがインストールされたと思われます。
67
+  →おそらく、deviseインストール時に自動でbcryptがインストールされたと思われます。
68
68
 
69
69
 
70
70
 

1

誤字を編集した

2021/10/24 10:45

投稿

shohei_mlb
shohei_mlb

スコア9

test CHANGED
@@ -1 +1 @@
1
- deviseでパスワード認証を行うとエラーが
1
+ deviseでパスワード認証を行うとエラーが発生す
test CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  2. 新規登録画面からメールとパスワードを入力
40
40
 
41
- 3. 以下のエラーが発生する
41
+ 3. 新規登録ボタンを押下すると、以下のエラーが発生する
42
42
 
43
43
 
44
44