summaryrefslogtreecommitdiff
path: root/app/controllers/pages_controller.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-10-28 18:44:21 -0700
committerelijah <elijah@riseup.net>2013-10-28 18:44:21 -0700
commitf691ad87516043aaf7a5f1f55f82d4c1713be7a4 (patch)
treed287db8f8adf9df32bcf07c3a21bae2fd3379c0e /app/controllers/pages_controller.rb
parent25e8050ed8f9c627493b51f8e9c9a730c71ddcd4 (diff)
fixed numerous bugs relating to localization
Diffstat (limited to 'app/controllers/pages_controller.rb')
-rw-r--r--app/controllers/pages_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index 3e76092..933aed7 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -5,6 +5,9 @@ class PagesController < ApplicationController
layout :choose_layout
rescue_from ActionView::MissingTemplate, :with => :render_404
rescue_from PageNotFound, :with => :render_404
+ rescue_from Encoding::CompatibilityError do |exception|
+ render_500(exception.to_s)
+ end
def show
@page = site.find_pages(params[:page])