質問編集履歴

3

deveropment.rbのコードを追加しました

2020/06/28 12:29

投稿

fresh_fish
fresh_fish

スコア20

test CHANGED
File without changes
test CHANGED
@@ -134,94 +134,142 @@
134
134
 
135
135
 
136
136
 
137
- ```gemfile
138
-
139
- source 'https://rubygems.org'
140
-
141
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
142
-
143
-
144
-
145
- gem 'rails', '6.0.3'
146
-
147
- gem 'puma', '4.3.4'
148
-
149
- gem 'sass-rails', '5.1.0'
150
-
151
- gem 'webpacker', '4.0.7'
152
-
153
- gem 'turbolinks', '5.2.0'
154
-
155
- gem 'jbuilder', '2.9.1'
156
-
157
- gem 'bootsnap', '1.4.5', require: false
158
-
159
-
160
-
161
- group :development, :test do
162
-
163
- gem 'sqlite3', '1.4.1'
164
-
165
- gem 'byebug', '11.0.1', platforms: [:mri, :mingw, :x64_mingw]
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

タイトルをわかりやすくしました

2020/06/28 12:29

投稿

fresh_fish
fresh_fish

スコア20

test CHANGED
@@ -1 +1 @@
1
- railsにてno method error
1
+ railsのNoMethodErrorが解決できない
test CHANGED
File without changes

1

文章をわかりやすくしました

2020/06/28 12:10

投稿

fresh_fish
fresh_fish

スコア20

test CHANGED
File without changes
test CHANGED
@@ -228,7 +228,7 @@
228
228
 
229
229
  railsチュートリアルをコピペしているので記述ミスはないはずです
230
230
 
231
- gemfileの設定かgem自体の中身がおかしいと思っているのですがcloud9にてエラメッセージのfrom以降のファイル名をファイル検索てもヒットしないので確認もできない状態で困っております
231
+ gemfileの設定かgem自体の中身がおかしいと思っているのですがcloud9にて上位ディレクトリの開き方がわからない為(ファイルツリには/home/ubunts/environment/以降しか表示されない)確認もでき困っております
232
232
 
233
233
 
234
234