diff app/helpers/application_helper.rb @ 469:68231013b01b bootstrap-4

Now with more bootstrap than ever
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 22:25:50 +0900
parents d31fe32da7a0
children
line wrap: on
line diff
--- a/app/helpers/application_helper.rb	Sun Feb 23 20:23:09 2020 +0900
+++ b/app/helpers/application_helper.rb	Sun Feb 23 22:25:50 2020 +0900
@@ -9,7 +9,7 @@
   end
 
   def error_class(object, attribute)
-    "has-error" if object.errors.include? attribute
+    "is-invalid" if object.errors.include? attribute
   end
 
   def with_host(url)