Guest User

Untitled

a guest
May 28th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class Exceptions < Merb::Controller
  2. provides :html
  3. # handle NotFound exceptions (404)
  4. def not_found
  5. render :template => "exceptions/#{Merb.env}/not_found.html"
  6. end
  7.  
  8. # handle NotAcceptable exceptions (406)
  9. def not_acceptable
  10. render :template => "exceptions/#{Merb.env}/not_found.html"
  11. end
  12. end
Add Comment
Please, Sign In to add comment