Permalink
Browse files

move 403 into a template

  • Loading branch information...
1 parent a4e31df commit 503e77a19a16cc0e51c4f7d3a2272bad0bb63d1d @aaronsw aaronsw committed May 10, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
  2. +1 −0 public/403.html
@@ -30,7 +30,7 @@ def require_admin
end
def render_403
- render :text => "You are not authorized to view this page", :status => 403
+ render :file => "#{Rails.root}/public/403.html", :status => 403
end
def can(permission)
View
@@ -0,0 +1 @@
+You are not authorized to view this page.

0 comments on commit 503e77a

Please sign in to comment.