We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d064907 commit 5a6566dCopy full SHA for 5a6566d
app/helpers/errors_helper.rb
@@ -0,0 +1,19 @@
1
+module ErrorsHelper
2
+ def error_title(code)
3
+ case code
4
+ when 404 then "ページが見つかりませんでした... 🥺💦"
5
+ when 422 then "リクエストが処理できませんでした… 😢"
6
+ when 500 then "予期しないエラーが発生しました 😵💫"
7
+ else "予期せぬエラーが発生しました…😵"
8
+ end
9
10
+
11
+ def error_desc(code)
12
13
+ when 404 then "ページが削除された可能性があります 🤔💭"
14
+ when 422 then "入力内容に誤りがあるか、リクエストが正しく送信されなかった可能性があります。"
15
+ when 500 then "申し訳ありません。サーバーで問題が発生しています。"
16
+ else "しばらく経ってから再度お試しください。"
17
18
19
+end
0 commit comments