質問編集履歴

1

書式の改善

2016/01/06 08:16

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,41 +1,45 @@
1
- 7章が全て終わりrails sでは問題なく登録できたのですが、
1
+ [Railsチュートリアル第7章](http://railstutorial.jp/chapters/sign_up?version=4.2#cha-sign_up)が全て終わり`rails s`では問題なく登録できたのですが、
2
2
 
3
- heroku push の後のheroku openで問題が発生しました。
3
+ `heroku push`の後の`heroku open`で問題が発生しました。
4
4
 
5
- http://localhost:3000/の画面は問題なく表示されたのですが
5
+ `http://localhost:3000/`の画面は問題なく表示されたのですが
6
6
 
7
7
  sign up now!と入力すると
8
8
 
9
9
 
10
10
 
11
- We're sorry, but something went wrong.
11
+ We're sorry, but something went wrong.
12
12
 
13
- If you are the application owner check the logs for more information.と表示されました。
13
+ If you are the application owner check the logs for more information.
14
14
 
15
15
 
16
16
 
17
- heroku logs で調べて問題がありそうなころpick upしてみました。
17
+ 表示されました。
18
-
19
- 具体的にどうすればいいか分からず悩んでいます。具体的な解決方法を教えていただくと幸いです。
20
18
 
21
19
 
22
20
 
23
- Processing by UsersController#new as HTML
21
+ `heroku logs`で調べて問題がありそうなところをピックアップしてみました。
24
22
 
25
- ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
23
+ 具体的にどうすればいいか分からず悩んでいます。具体的な解決方法を教えてください。
26
24
 
27
- LINE 5: WHERE a.attrelid = '"users"'::regclass
28
25
 
29
- SELECT a.attname, format_type(a.atttypid, a.atttypmod),
30
26
 
31
- pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
27
+ Processing by UsersController#new as HTML
32
28
 
33
- FROM pg_attribute a LEFT JOIN pg_attrdef d
29
+ ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
34
30
 
35
- ON a.attrelid = d.adrelid AND a.attnum = d.adnum
31
+ LINE 5: WHERE a.attrelid = '"users"'::regclass
36
32
 
37
- WHERE a.attrelid = '"users"'::regclass
33
+ SELECT a.attname, format_type(a.atttypid, a.atttypmod),
38
34
 
39
- AND a.attnum > 0 AND NOT a.attisdropped
35
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
40
36
 
37
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
38
+
39
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
40
+
41
+ WHERE a.attrelid = '"users"'::regclass
42
+
43
+ AND a.attnum > 0 AND NOT a.attisdropped
44
+
41
- ORDER BY a.attnum
45
+ ORDER BY a.attnum