Class: Exceptiongem::exceptionfgem
- Inherits:
-
Object
- Object
- Exceptiongem::exceptionfgem
- Defined in:
- lib/exceptiongem.rb
Class Method Summary collapse
Class Method Details
.rescue404 ⇒ Object
5 6 7 |
# File 'lib/exceptiongem.rb', line 5 def self.rescue404 render :file => 'public/404.html', :status => :not_found, :layout => false end |
.rescue422 ⇒ Object
13 14 15 |
# File 'lib/exceptiongem.rb', line 13 def self.rescue422 render :file => 'public/422.html', :status => :not_found, :layout => false end |
.rescue500 ⇒ Object
9 10 11 |
# File 'lib/exceptiongem.rb', line 9 def self.rescue500 render :file => 'public/500.html', :status => :not_found, :layout => false end |