Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
468:802dcd44188e | 469:68231013b01b |
---|---|
7 base_title | 7 base_title |
8 end | 8 end |
9 end | 9 end |
10 | 10 |
11 def error_class(object, attribute) | 11 def error_class(object, attribute) |
12 "has-error" if object.errors.include? attribute | 12 "is-invalid" if object.errors.include? attribute |
13 end | 13 end |
14 | 14 |
15 def with_host(url) | 15 def with_host(url) |
16 return url if url[0] != "/" | 16 return url if url[0] != "/" |
17 | 17 |