質問編集履歴

1

Controllerのdef result~ と routesのget 'posts/result' を書き忘れていたので、追記しました。

2017/11/19 14:30

投稿

testrails
testrails

スコア11

test CHANGED
File without changes
test CHANGED
@@ -74,6 +74,12 @@
74
74
 
75
75
 
76
76
 
77
+ def result
78
+
79
+ end
80
+
81
+
82
+
77
83
  def new
78
84
 
79
85
  end
@@ -126,6 +132,8 @@
126
132
 
127
133
  get 'posts/show'
128
134
 
135
+  get 'posts/result'
136
+
129
137
  get 'posts/new'
130
138
 
131
139
  post "posts" => "posts#create"