Mercurial > zeropaste
comparison app/helpers/application_helper.rb @ 398:851432f21603
Nope, failing at redesigning.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 06 Sep 2015 03:52:52 +0900 |
parents | 7c7b7906ebd9 |
children | d31fe32da7a0 |
comparison
equal
deleted
inserted
replaced
395:26f8c634052c | 398:851432f21603 |
---|---|
5 "#{content_for(:title)} | #{h base_title}".html_safe | 5 "#{content_for(:title)} | #{h base_title}".html_safe |
6 else | 6 else |
7 base_title | 7 base_title |
8 end | 8 end |
9 end | 9 end |
10 | |
11 def error_class(object, attribute) | |
12 "has-error" if object.errors.include? attribute | |
13 end | |
10 end | 14 end |