Class: Exceptiongem::exceptionfgem

Inherits:
Object
  • Object
show all
Defined in:
lib/exceptiongem.rb

Class Method Summary collapse

Class Method Details

.rescue404Object



5
6
7
# File 'lib/exceptiongem.rb', line 5

def self.rescue404
  render :file => 'public/404.html', :status => :not_found, :layout => false
end

.rescue422Object



13
14
15
# File 'lib/exceptiongem.rb', line 13

def self.rescue422
  render :file => 'public/422.html', :status => :not_found, :layout => false
end

.rescue500Object



9
10
11
# File 'lib/exceptiongem.rb', line 9

def self.rescue500
  render :file => 'public/500.html', :status => :not_found, :layout => false
end