Project

General

Profile

Actions

Feature #15760

open

JS response support for #render_error

Feature #15760: JS response support for #render_error

Added by Zach Hamman almost 13 years ago. Updated almost 13 years ago.

Status:
Reopened
Priority:
Normal
Category:
Code cleanup/refactoring
Resolution:

Description

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

Updated by Jean-Philippe Lang almost 13 years ago Actions #1

What kind of response do you expect?

Updated by Zach Hamman almost 13 years ago Actions #2

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.

Updated by Jean-Philippe Lang almost 13 years ago Actions #3

  • Subject changed from render_error method for JS format to JS response support for #render_error
  • Category changed from UI to Code cleanup/refactoring
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.5.0
  • Resolution set to Fixed

Added in r12855. The error is displayed with a simple JS alert().

Updated by Jean-Philippe Lang almost 13 years ago Actions #4

  • Status changed from Closed to Reopened
  • Resolution deleted (Fixed)

Updated by Jean-Philippe Lang almost 13 years ago Actions #5

  • Target version changed from 2.5.0 to Candidate for next major release
Actions

Also available in: PDF Atom