2011-10-30 23:02:41 +00:00
|
|
|
module Locomotive::SitesHelper
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
def error_on_domain(site, name)
|
|
|
|
if (error = (site.errors[:domains] || []).detect { |n| n.include?(name) })
|
|
|
|
content_tag(:span, error, :class => 'inline-errors')
|
|
|
|
else
|
|
|
|
''
|
|
|
|
end
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
end
|