質問編集履歴
1
質問者からの要望により該当のソースコードを追加したため
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,7 +99,113 @@
|
|
99
99
|
</body>
|
100
100
|
</html>
|
101
101
|
```
|
102
|
-
|
102
|
+
```Gemfile
|
103
|
+
source 'https://rubygems.org'
|
104
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
105
|
+
|
106
|
+
ruby '3.1.2'
|
107
|
+
|
108
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
|
109
|
+
gem 'rails', '~> 6.1.7'
|
110
|
+
# Use sqlite3 as the database for Active Record
|
111
|
+
gem 'sqlite3', '~> 1.4'
|
112
|
+
# Use Puma as the app server
|
113
|
+
gem 'puma', '~> 5.0'
|
114
|
+
# Use SCSS for stylesheets
|
115
|
+
gem 'sass-rails', '>= 6'
|
116
|
+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
117
|
+
gem 'webpacker', '~> 5.0'
|
118
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
119
|
+
gem 'turbolinks', '~> 5'
|
120
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
121
|
+
gem 'jbuilder', '~> 2.7'
|
122
|
+
# Use Redis adapter to run Action Cable in production
|
123
|
+
# gem 'redis', '~> 4.0'
|
124
|
+
# Use Active Model has_secure_password
|
125
|
+
# gem 'bcrypt', '~> 3.1.7'
|
126
|
+
|
127
|
+
# Use Active Storage variant
|
128
|
+
# gem 'image_processing', '~> 1.2'
|
129
|
+
|
130
|
+
# Reduces boot times through caching; required in config/boot.rb
|
131
|
+
gem 'bootsnap', '>= 1.4.4', require: false
|
132
|
+
|
133
|
+
group :development, :test do
|
134
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
135
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
136
|
+
end
|
137
|
+
|
138
|
+
group :development do
|
139
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
140
|
+
gem 'web-console', '>= 4.1.0'
|
141
|
+
# Display performance information such as SQL time and flame graphs for each request in your browser.
|
142
|
+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
|
143
|
+
gem 'rack-mini-profiler', '~> 2.0'
|
144
|
+
gem 'listen', '~> 3.3'
|
145
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
146
|
+
gem 'spring'
|
147
|
+
end
|
148
|
+
|
149
|
+
group :test do
|
150
|
+
# Adds support for Capybara system testing and selenium driver
|
151
|
+
gem 'capybara', '>= 3.26'
|
152
|
+
gem 'selenium-webdriver', '>= 4.0.0.rc1'
|
153
|
+
# Easy installation and use of web drivers to run system tests with browsers
|
154
|
+
gem 'webdrivers'
|
155
|
+
end
|
156
|
+
|
157
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
158
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
159
|
+
|
160
|
+
#以下追加
|
161
|
+
gem 'devise'
|
162
|
+
|
163
|
+
gem 'net-smtp'
|
164
|
+
|
165
|
+
gem 'rails-i18n'
|
166
|
+
```
|
167
|
+
```package.json
|
168
|
+
{
|
169
|
+
"name": "bookers2",
|
170
|
+
"private": true,
|
171
|
+
"dependencies": {
|
172
|
+
"@rails/actioncable": "^6.0.0",
|
173
|
+
"@rails/activestorage": "^6.0.0",
|
174
|
+
"@rails/ujs": "^6.0.0",
|
175
|
+
"@rails/webpacker": "5.4.3",
|
176
|
+
"bootstrap": "4.5",
|
177
|
+
"jquery": "^3.6.1",
|
178
|
+
"popper.js": "^1.16.1",
|
179
|
+
"turbolinks": "^5.2.0",
|
180
|
+
"webpack": "^4.46.0",
|
181
|
+
"webpack-cli": "^3.3.12"
|
182
|
+
},
|
183
|
+
"version": "0.1.0",
|
184
|
+
"devDependencies": {
|
185
|
+
"webpack-dev-server": "^3"
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
```
|
190
|
+
```application.js
|
191
|
+
// This file is automatically compiled by Webpack, along with any other files
|
192
|
+
// present in this directory. You're encouraged to place your actual application logic in
|
193
|
+
// a relevant structure within app/javascript and only use these pack files to reference
|
194
|
+
// that code so it'll be compiled.
|
195
|
+
|
196
|
+
import Rails from "@rails/ujs"
|
197
|
+
import Turbolinks from "turbolinks"
|
198
|
+
import * as ActiveStorage from "@rails/activestorage"
|
199
|
+
import "channels"
|
200
|
+
import "jquery";
|
201
|
+
import "popper.js";
|
202
|
+
import "bootstrap";
|
203
|
+
import "../stylesheets/application"
|
204
|
+
|
205
|
+
Rails.start()
|
206
|
+
Turbolinks.start()
|
207
|
+
ActiveStorage.start()
|
208
|
+
```
|
103
209
|
### 試したこと
|
104
210
|
|
105
211
|
スペルミスや全角スペースがないかの確認
|