Skip to content

Commit

Permalink
Adding a html error notice view
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Deyen committed Mar 6, 2012
1 parent 31835dd commit 927742a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/alchemy/admin/base_controller.rb
Expand Up @@ -44,7 +44,7 @@ def show_error_notice(e)
@notice = "Error: #{e}"
@trace = e.backtrace
if request.xhr?
render :action => "error_notice"
render :action => "error_notice", :layout => false
else
flash.now[:error] = @notice
render '500', :status => 500
Expand Down
4 changes: 4 additions & 0 deletions app/views/alchemy/base/error_notice.html.erb
@@ -0,0 +1,4 @@
<div class="flash error">
<%= render_icon(:error) %>
<%= @notice %>
</div>

0 comments on commit 927742a

Please sign in to comment.