質問編集履歴
3
deveropment.rbのコードを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -134,94 +134,142 @@
|
|
134
134
|
|
135
135
|
|
136
136
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
ge
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
ge
|
137
|
+
|
138
|
+
|
139
|
+
```development.rb
|
140
|
+
|
141
|
+
Railsdeve.application.configure do
|
142
|
+
|
143
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
# In the development environment your application's code is reloaded on
|
148
|
+
|
149
|
+
# every request. This slows down response time but is perfect for development
|
150
|
+
|
151
|
+
# since you don't have to restart the web server when you make code changes.
|
152
|
+
|
153
|
+
config.cache_classes = false
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
# Do not eager load code on boot.
|
158
|
+
|
159
|
+
config.eager_load = false
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# Show full error reports.
|
164
|
+
|
165
|
+
config.consider_all_requests_local = true
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# Enable/disable caching. By default caching is disabled.
|
170
|
+
|
171
|
+
# Run rails dev:cache to toggle caching.
|
172
|
+
|
173
|
+
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
174
|
+
|
175
|
+
config.action_controller.perform_caching = true
|
176
|
+
|
177
|
+
config.action_controller.enable_fragment_cache_logging = true
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
config.cache_store = :memory_store
|
182
|
+
|
183
|
+
config.public_file_server.headers = {
|
184
|
+
|
185
|
+
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
else
|
190
|
+
|
191
|
+
config.action_controller.perform_caching = false
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
config.cache_store = :null_store
|
196
|
+
|
197
|
+
end
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
202
|
+
|
203
|
+
config.active_storage.service = :local
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
# Don't care if the mailer can't send.
|
208
|
+
|
209
|
+
config.action_mailer.raise_delivery_errors = false
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
config.action_mailer.perform_caching = false
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
# Print deprecation notices to the Rails logger.
|
218
|
+
|
219
|
+
config.active_support.deprecation = :log
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
# Raise an error on page load if there are pending migrations.
|
224
|
+
|
225
|
+
config.active_record.migration_error = :page_load
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
# Highlight code that triggered database queries in logs.
|
230
|
+
|
231
|
+
config.active_record.verbose_query_logs = true
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
236
|
+
|
237
|
+
# This option may cause significant delays in view rendering with a large
|
238
|
+
|
239
|
+
# number of complex assets.
|
240
|
+
|
241
|
+
config.assets.debug = true
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
# Suppress logger output for asset requests.
|
246
|
+
|
247
|
+
config.assets.quiet = true
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
# Raises error for missing translations.
|
252
|
+
|
253
|
+
# config.action_view.raise_on_missing_translations = true
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# Use an evented file watcher to asynchronously detect changes in source code,
|
258
|
+
|
259
|
+
# routes, locales, etc. This feature depends on the listen gem.
|
260
|
+
|
261
|
+
config.file_watcher = ActiveSupport::EventedFileUpdateChecker.
|
262
|
+
|
263
|
+
# Cloud9 への接続を許可する
|
264
|
+
|
265
|
+
config.hosts.clear
|
166
266
|
|
167
267
|
end
|
168
268
|
|
169
269
|
|
170
270
|
|
171
|
-
group :development do
|
172
|
-
|
173
|
-
gem 'web-console', '4.0.1'
|
174
|
-
|
175
|
-
gem 'listen', '3.1.5'
|
176
|
-
|
177
|
-
gem 'spring', '2.1.0'
|
178
|
-
|
179
|
-
gem 'spring-watcher-listen', '2.0.1'
|
180
|
-
|
181
|
-
end
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
group :test do
|
186
|
-
|
187
|
-
gem 'capybara', '3.28.0'
|
188
|
-
|
189
|
-
gem 'selenium-webdriver', '3.142.4'
|
190
|
-
|
191
|
-
gem 'webdrivers', '4.1.2'
|
192
|
-
|
193
|
-
gem 'rails-controller-testing', '1.0.4'
|
194
|
-
|
195
|
-
gem 'minitest', '5.11.3'
|
196
|
-
|
197
|
-
gem 'minitest-reporters', '1.3.8'
|
198
|
-
|
199
|
-
gem 'guard', '2.16.2'
|
200
|
-
|
201
|
-
gem 'guard-minitest', '2.4.6'
|
202
|
-
|
203
|
-
end
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
group :production do
|
208
|
-
|
209
|
-
gem 'pg', '1.1.4'
|
210
|
-
|
211
|
-
end
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
# Windows ではタイムゾーン情報用の tzinfo-data gem を含める必要があります
|
216
|
-
|
217
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
218
|
-
|
219
|
-
|
220
|
-
|
221
271
|
```
|
222
272
|
|
223
|
-
|
224
|
-
|
225
273
|
### 試したこと
|
226
274
|
|
227
275
|
|
2
タイトルをわかりやすくしました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails
|
1
|
+
railsのNoMethodErrorが解決できない
|
test
CHANGED
File without changes
|
1
文章をわかりやすくしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -228,7 +228,7 @@
|
|
228
228
|
|
229
229
|
railsチュートリアルをコピペしているので記述ミスはないはずです
|
230
230
|
|
231
|
-
gemfileの設定かgem自体の中身がおかしいと思っているのですがcloud9にて
|
231
|
+
gemfileの設定かgem自体の中身がおかしいと思っているのですがcloud9にて上位ディレクトリの開き方がわからない為(ファイルツリーには/home/ubunts/environment/以降しか表示されない)確認もできず困っております
|
232
232
|
|
233
233
|
|
234
234
|
|