app/helpers/application_helper.rb
# Used in V2 to allow block elements in forms
# adds error class and title attributes to form elements
# adds error messages after label
Used in V2 to allow block elements in forms
adds error class and title attributes to form elements
adds error messages after label
Used in V2 to allow block elements in forms adds error class and title attributes to form elements adds error messages after label
def allow_some_html(text)
    text = text.allow_some_html
    unless text.match(/<(br|p)\s*[\/]?\s*>/)
      text.gsub!("\n", "<br/>")
    end
    text
  end
def allow_some_html ( text ) text = text . allow_some_html unless text . match ( / <(br|p) \s *[ \/ ]? \s *> / ) text . gsub! ( "\n" , "<br/>" ) end text end
Used in V2 to allow block elements in forms
adds error class and title attributes to form elements
adds error messages after label
Used in V2 to allow block elements in forms adds error class and title attributes to form elements adds error messages after label
text
<not_specific>