teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

修正

2019/09/18 04:05

投稿

avicii
avicii

スコア49

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,5 @@
1
1
  私は、今現在、サインアップページに利用規約を追加しようとしているのですが、Interval Server Errorを発生していて、ページが見えない状態になっています。localでは動くのですが、デプロイすると動かなくなります。わかる方がいらしたら、どうぞ教えていただきたいです。
2
2
 
3
- ![イメージ説明](2428b1592e1028ad2257e26e88a83292.png)
4
-
5
3
  ![イメージ説明](8332ee9034ee99c36d2567690bcaf0da.png)
6
4
 
7
5
  Heroku logs

4

修正

2019/09/18 04:04

投稿

avicii
avicii

スコア49

title CHANGED
File without changes
body CHANGED
@@ -4,6 +4,29 @@
4
4
 
5
5
  ![イメージ説明](8332ee9034ee99c36d2567690bcaf0da.png)
6
6
 
7
+ Heroku logs
8
+ ```terminal
9
+ 2019-08-22T13:31:36.184273+00:00 app[web.1]: Started GET "/guiders/sign_up" for 162.158.118.161 at 2019-08-22 13:31:36 +0000
10
+ 2019-08-22T13:31:36.190461+00:00 app[web.1]: Processing by Guiders::RegistrationsController#new as HTML
11
+ 2019-08-22T13:31:36.233898+00:00 app[web.1]: Rendered guiders/registrations/new.html.erb within layouts/application (28.7ms)
12
+ 2019-08-22T13:31:36.234153+00:00 app[web.1]: Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.0ms)
13
+ 2019-08-22T13:31:36.239764+00:00 app[web.1]:
14
+ 2019-08-22T13:31:36.239768+00:00 app[web.1]: ActionView::Template::Error (undefined method `accepted' for #<Guider:0x0000558b5178fe38>):
15
+ 2019-08-22T13:31:36.239772+00:00 app[web.1]: 28: <%= f.text_field :nickname, autofocus: true, maxlength: "6" %>
16
+ 2019-08-22T13:31:36.239774+00:00 app[web.1]: 29: </div>
17
+ 2019-08-22T13:31:36.239776+00:00 app[web.1]: 30:
18
+ 2019-08-22T13:31:36.239778+00:00 app[web.1]: 31: <%= f.check_box :accepted ,{},checked_value = "true",unchecked_value = "false" %>
19
+ 2019-08-22T13:31:36.239781+00:00 app[web.1]: 32: <a class="ac" href="/guiders/:id/accepted">利用規約、及び、個人情報の取扱に同意する</a>
20
+ 2019-08-22T13:31:36.239783+00:00 app[web.1]: 33:
21
+ 2019-08-22T13:31:36.239785+00:00 app[web.1]: 34: <div class="actions">
22
+ 2019-08-22T13:31:36.239788+00:00 app[web.1]: app/views/guiders/registrations/new.html.erb:31:in `block in _app_views_guiders_registrations_new_html_erb___1610938150473438876_47028427832020'
23
+ 2019-08-22T13:31:36.239791+00:00 app[web.1]: app/views/guiders/registrations/new.html.erb:3:in `_app_views_guiders_registrations_new_html_erb___1610938150473438876_47028427832020'
24
+ 2019-08-22T13:31:36.239793+00:00 app[web.1]:
25
+ 2019-08-22T13:31:36.239795+00:00 app[web.1]:
26
+ 2019-08-22T13:31:36.239272+00:00 heroku[router]: at=info method=GET path="/guiders/sign_up" request_id=eab95b38-2c21-49c4-9d25-0895d8150b1a fwd="118.103.63.155,162.158.118.161" dyno=web.1 connect=1ms service=58ms status=500 bytes=1728 protocol=https
27
+
28
+ ```
29
+
7
30
  ```webpage
8
31
  Failed to load resource: the server responded with a statue of 500(Internal Server Error)
9
32
  ```

3

修正

2019/08/22 13:33

投稿

avicii
avicii

スコア49

title CHANGED
File without changes
body CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ![イメージ説明](2428b1592e1028ad2257e26e88a83292.png)
4
4
 
5
+ ![イメージ説明](8332ee9034ee99c36d2567690bcaf0da.png)
6
+
5
7
  ```webpage
6
8
  Failed to load resource: the server responded with a statue of 500(Internal Server Error)
7
9
  ```

2

修正

2019/08/22 13:25

投稿

avicii
avicii

スコア49

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,75 @@
6
6
  Failed to load resource: the server responded with a statue of 500(Internal Server Error)
7
7
  ```
8
8
 
9
+ ```gemfile
10
+ source 'https://rubygems.org'
11
+
12
+
13
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
14
+ gem 'rails', '4.2.11'
15
+ # Use mysql as the database for Active Record
16
+ gem 'mysql2', '0.3.18'
17
+ # Use SCSS for stylesheets
18
+ gem 'sass-rails', '~> 4.0.2'
19
+ # Use Uglifier as compressor for JavaScript assets
20
+ gem 'uglifier', '>= 1.3.0'
21
+ # Use CoffeeScript for .coffee assets and views
22
+ gem 'coffee-rails', '~> 4.1.0'
23
+ # See https://github.com/rails/execjs#readme for more supported runtimes
24
+ # gem 'therubyracer', platforms: :ruby
25
+
26
+ # Use jquery as the JavaScript library
27
+ gem 'jquery-rails'
28
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
29
+ gem 'turbolinks'
30
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
31
+ gem 'jbuilder', '~> 2.0'
32
+ # bundle exec rake doc:rails generates the API under doc/api.
33
+ gem 'sdoc', '~> 0.4.0', group: :doc
34
+
35
+ # Use ActiveModel has_secure_password
36
+ # gem 'bcrypt', '~> 3.1.7'
37
+
38
+ # Use Unicorn as the app server
39
+ # gem 'unicorn'
40
+
41
+ # Use Capistrano for deployment
42
+ # gem 'capistrano-rails', group: :development
43
+
44
+ group :development, :test do
45
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
46
+ gem 'byebug'
47
+ end
48
+
49
+ group :development do
50
+ # Access an IRB console on exception pages or by using <%= console %> in views
51
+ gem 'web-console', '~> 2.0'
52
+
53
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
54
+ gem 'spring'
55
+ end
56
+
57
+ gem 'pry-rails'
58
+ gem 'compass-rails','~> 2.0'
59
+ gem 'sprockets', '2.11.0'
60
+ gem 'websocket-rails'
61
+
62
+ #pagenation
63
+ gem 'kaminari'
64
+
65
+ #login_logout
66
+ gem 'devise'
67
+ gem 'paperclip'
68
+
69
+ #For Heroku
70
+ gem 'rails_12factor', group: :production
71
+ gem 'therubyracer', platforms: :ruby
72
+
73
+ #画像
74
+ gem 'carrierwave'
75
+ gem 'rmagick'
76
+ ```
77
+
9
78
  ```view
10
79
  <div class="contents center">
11
80
 

1

修正

2019/08/22 04:08

投稿

avicii
avicii

スコア49

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,7 @@
1
1
  私は、今現在、サインアップページに利用規約を追加しようとしているのですが、Interval Server Errorを発生していて、ページが見えない状態になっています。localでは動くのですが、デプロイすると動かなくなります。わかる方がいらしたら、どうぞ教えていただきたいです。
2
2
 
3
+ ![イメージ説明](2428b1592e1028ad2257e26e88a83292.png)
4
+
3
5
  ```webpage
4
6
  Failed to load resource: the server responded with a statue of 500(Internal Server Error)
5
7
  ```