diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2015-03-28 23:14:33 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2015-03-28 23:14:33 -0700 |
commit | 1370d21460255914e03754fb0f20052e6b3002d7 (patch) | |
tree | 7d8275a293e71286df430bef3e55d6b0ebdf9a4c /app/controllers/application_controller.rb | |
parent | 43743c4b42b01eb95bec6ab5e4991121b06c9c36 (diff) |
Crude first pass at downloading files.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d83690e..a994170 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,4 +2,8 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception + + def not_found + raise ActionController::RoutingError.new('Not Found') + end end |