<% if /^(5[0-9]{2})$/ =~ @exception.status.to_s %> <%= content_tag :div, class: "message" do %> <%= content_tag :div, class: "title" do %> <%= "#{@exception.status} Error - #{details[:name]}" %> <%= link_to image_tag("exception_handler/close.png"), main_app.root_url, title: "Close (Go back home)", class: "close" %> <% end %> <%= content_tag :div, class: "details" do %> <%= image_tag "exception_handler/alert.png", title: "#{@exception.status} Error" %>
<%= @exception.status %> Error
<% end %> <%= content_tag :div, class: "info" do %> <%= details[:description] %>
<%= link_to image_tag("exception_handler/home.png", title: "Go Back Home"), main_app.root_url, class: "home" %>
v<%= Rails.version %>
Our developers have been notified - we're working on it!
<% end %> <% end %> <% else %> <%= content_tag :div, details[:description], class: "message" %> <% end %>