forked from External/greenlight
handle errors and fix join form
This commit is contained in:
14
app/controllers/errors_controller.rb
Normal file
14
app/controllers/errors_controller.rb
Normal file
@ -0,0 +1,14 @@
|
||||
class ErrorsController < ApplicationController
|
||||
|
||||
def not_found
|
||||
render status: 404
|
||||
end
|
||||
|
||||
def unprocessable
|
||||
render status: 422
|
||||
end
|
||||
|
||||
def internal_error
|
||||
render status: 500
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user