]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/errors_controller.rb
Use dynamic error pages built through the asset pipeline
[rails.git] / app / controllers / errors_controller.rb
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
new file mode 100644 (file)
index 0000000..465194e
--- /dev/null
@@ -0,0 +1,15 @@
+class ErrorsController < ApplicationController
+  layout "error"
+
+  def forbidden
+    render :status => :forbidden
+  end
+
+  def not_found
+    render :status => :not_found
+  end
+
+  def internal_server_error
+    render :status => :internal_server_error
+  end
+end