Vote #74749
未完了JS response support for #render_error
0%
説明
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().
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Admin Redmine さんがほぼ4年前に更新
- カテゴリ を Code cleanup/refactoring_30 にセット
- 対象バージョン を Candidate for next major release_32 にセット