method
hostname_error
rails latest stable - Class:
ActiveRecord::DatabaseConnectionError
hostname_error(hostname)public
No documentation available.
# File activerecord/lib/active_record/errors.rb, line 99
def hostname_error(hostname)
DatabaseConnectionError.new(<<~MSG)
There is an issue connecting with your hostname: #{hostname}.\n
Please check your database configuration and ensure there is a valid connection to your database.
MSG
end