aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
Commit message (Collapse)AuthorAgeFilesLines
* Make rescues layout responsiveChris Seelus2019-05-201-4/+9
|
* Implement dark color scheme for rescues layoutChris Seelus2019-05-181-0/+58
|
* Introduce Actionable ErrorsGenadi Samokovarov2019-04-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Actionable errors let's you dispatch actions from Rails' error pages. This can help you save time if you have a clear action for the resolution of common development errors. The de-facto example are pending migrations. Every time pending migrations are found, a middleware raises an error. With actionable errors, you can run the migrations right from the error page. Other examples include Rails plugins that need to run a rake task to setup themselves. They can now raise actionable errors to run the setup straight from the error pages. Here is how to define an actionable error: ```ruby class PendingMigrationError < MigrationError #:nodoc: include ActiveSupport::ActionableError action "Run pending migrations" do ActiveRecord::Tasks::DatabaseTasks.migrate end end ``` To make an error actionable, include the `ActiveSupport::ActionableError` module and invoke the `action` class macro to define the action. An action needs a name and a procedure to execute. The name is shown as the name of a button on the error pages. Once clicked, it will invoke the given procedure.
* Prevent source line wrapping in rescue layoutDave Gynn2017-10-311-0/+1
| | | | | | Long source lines cause line wrapping in the extracted source section of the rescue handler page which can make the line numbers not match up with the source lines.
* Retrieve source code for the entire stack traceRyan Dao2014-08-081-0/+6
| | | | | | Provide the ability to extract the source code of the entire exception stack trace, not just the frame raising the error. This improves debugging capability of the error page, especially for framework-related errors.
* Add styling to h1Tim Krajcar2013-05-021-0/+6
|
* Return false on toggle on error pagesBartlomiej Kozal2013-02-171-3/+4
|
* Move style to head to make routes page valid html5Carlos Antonio da Silva2013-01-051-0/+2
|
* move error page js into script tagGosha Arinich2013-01-041-0/+22
|
* fix env toggling, improve error page stylingGosha Arinich2013-01-031-11/+9
|
* Cleanup some unnecessary CSS on the new error page and reformat some lines.Lucas Mazza2013-01-021-12/+13
|
* add source line paddingGosha Arinich2013-01-021-0/+4
|
* Summary and Details HTML elements aren't supported in all modern browsersGuillermo Iguaran2012-12-311-4/+4
|
* Improve line-height to have better line spacing in exception messageGuillermo Iguaran2012-12-311-0/+1
|
* Styling for exception pageGuillermo Iguaran2012-12-311-5/+92
|
* CSS fix to prevent error output from being breaking out of body element.Olivier Lacan2011-11-031-0/+1
| | | | | | | | | Using the white-space: pre-wrap adds extra line breaks to prevent the text from breaking out of the element's box. In this case single line output can be extremely long, breaking out the <body> element. See for reference: http://www.quirksmode.org/css/whitespace.html Before: http://link.olivierlacan.com/BVU4 After: http://link.olivierlacan.com/BUfM
* Rescues template HTML5 doctype and the utf8 charset meta tag, and better ↵Matias Korhonen2011-05-031-2/+4
| | | | font choices for Mac users.
* Extract ActionController rescue templates into Rescue and ShowExceptions ↵Joshua Peek2009-05-021-0/+29
middleware. This commit breaks all exception catching plugins like ExceptionNotifier. These plugins should be rewritten as middleware instead overriding Controller#rescue_action_in_public.