lib/janus/helper.rb in janus-0.6.0 vs lib/janus/helper.rb in janus-0.7.0
- old
+ new
@@ -1,8 +1,8 @@
module JanusHelper
def janus_error_messages
return "" if resource.errors.empty?
-
+
content_tag :div, :id => 'error_explanation' do
content_tag :ul do
resource.errors.full_messages.map { |message| content_tag :li, message }.join.html_safe
end
end