13 lines
223 B
Ruby
13 lines
223 B
Ruby
|
class Exceptions < Application
|
||
|
|
||
|
# handle NotFound exceptions (404)
|
||
|
def not_found
|
||
|
render :format => :html
|
||
|
end
|
||
|
|
||
|
# handle NotAcceptable exceptions (406)
|
||
|
def not_acceptable
|
||
|
render :format => :html
|
||
|
end
|
||
|
|
||
|
end
|