質問編集履歴

1

追記

2019/02/06 05:52

投稿

tkshp
tkshp

スコア174

test CHANGED
File without changes
test CHANGED
@@ -85,3 +85,17 @@
85
85
  Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
86
86
 
87
87
  ```
88
+
89
+
90
+
91
+ ### 追記。
92
+
93
+
94
+
95
+ and returnをつけてもダメでした。
96
+
97
+ ```ruby
98
+
99
+ redirect_to action: errorpage and return
100
+
101
+ ```