プロジェクト

全般

プロフィール

Vote #74749

未完了

JS response support for #render_error

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
32
issue_org_id:
15760
author_id:
35462
assigned_to_id:
1
comments:
5
status_id:
8
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

In ApplicationController#render_error, responding formats are HTML and REST API. It would helpful if render_error could respond with JS.


journals

What kind of response do you expect?
--------------------------------------------------------------------------------
Recommend an errors.js view in common directory that adds the flash messages to the top of the page similar to a validation error when saving an object. Display the errors with content in that construction in HTML response.
--------------------------------------------------------------------------------
Added in r12855. The error is displayed with a simple JS alert().
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0