diff --git a/app/controllers/statics_controller.rb b/app/controllers/statics_controller.rb index f2891f3..e0a825b 100644 --- a/app/controllers/statics_controller.rb +++ b/app/controllers/statics_controller.rb @@ -14,4 +14,8 @@ class StaticsController < ApplicationController def donate end + def raise_500 + raise "Someone called /raise_500! OMG!" + end + end diff --git a/config/routes.rb b/config/routes.rb index a1a50af..3868199 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -49,6 +49,8 @@ Redstoner::Application.routes.draw do get 'logout' => 'sessions#destroy' get 'signup' => 'users#new' + post 'raise_500' => 'statics#raise_500' + # post 'paypal' => 'paypal#create' root to: 'statics#index' diff --git a/public/500.html b/public/500.html index f034779..638b33c 100644 --- a/public/500.html +++ b/public/500.html @@ -1 +1 @@ -