Commit 0e3b5d26

mo khan <mo@mokhan.ca>
2014-05-30 02:52:18
add errors controller to raise errors to see if emails are getting delivered when there is an error.
1 parent 513c06b
Changed files (3)
app
controllers
views
admin
config
app/controllers/admin/errors_controller.rb
@@ -0,0 +1,10 @@
+module Admin
+  class ErrorsController < AdminController
+    def index
+    end
+
+    def create
+      raise "heck"
+    end
+  end
+end
app/views/admin/errors/index.html.erb
@@ -0,0 +1,8 @@
+<div class="row-fluid">
+  <div class="span12">
+    <%= render :partial => 'admin/shared/admin_nav' %>
+    <h1>Errors <small><%= Time.now.utc %></small></h1>
+
+    <%= button_to "Raise HECK", admin_errors_path, method: :post %>
+  </div>
+</div>
config/routes.rb
@@ -55,6 +55,7 @@ Cake::Application.routes.draw do
     resources :activities, only: [:index]
     resources :subscriptions, only: [:index]
     resources :photos, only: [:index, :show]
+    resources :errors, only: [:index, :create]
   end
 
   namespace :my do