This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://rubyplus.com/articles/3401-Customize-Field-Error-in-Rails-5 | |
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| | |
html = '' | |
form_fields = [ | |
'textarea', | |
'input', | |
'select' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="assets/styles.css"> | |
<title>Trevor Elwell's Website</title> | |
</head> | |
<body class="container-fluid"> | |
<div class="row justify-content-center"> |