This allows us to reuse any CSS we have, unify their look and unify their look with the regular page design. This works by instantiating ActionView and rendering templates in a rake task. Inspired by the errgent gem.
14 lines
320 B
Text
14 lines
320 B
Text
!!!
|
|
%html
|
|
%head
|
|
%title= page_title yield(:page_title)
|
|
|
|
%link{rel: "shortcut icon", href: image_path("favicon.png")}
|
|
%link{rel: "apple-touch-icon", href: image_path("apple-touch-icon.png")}
|
|
|
|
= stylesheet_link_tag :error_pages, media: "all"
|
|
|
|
= yield(:head)
|
|
|
|
%body{id: "error_#{@code}"}
|
|
= yield
|