This commit is contained in:
albert
2013-03-03 15:33:36 -05:00
parent 0137f7ff79
commit a214c12e5c
4 changed files with 10 additions and 11 deletions

View File

@@ -12,13 +12,6 @@ class PostsController < ApplicationController
respond_with(@posts) do |format|
format.atom
end
rescue ::ActiveRecord::StatementInvalid => e
if e.to_s =~ /statement timeout/
@error_message = "The database timed out running your query. Try a simpler query that returns fewer results."
render :template => "static/error", :status => 500
else
raise
end
end
def show