application_controller.rb revision f79d91b6b40a627cf127c6bc0b22392b1c5018a2
end
end
# CanCan Authorization
else
render \
content_type: 'text/plain',
end
end
# A foreign key constraint exception from the database
# shorten the message
flash: {error: "Whatever you tried to do - the server is unable to process your request because of a foreign key constraint. (#{message})" }
else
# anything else
end
end
end
end
end
end
end
end
end
end
end
iri = "#{request.base_url}#{locid}"
end
end