def hint_of(metadata)
      type = metadata[:type]
      hint = metadata[:hint]
      # @see http://guides.rubyonrails.org/i18n.html#using-safe-html-translations
      hint ||= type && t("hints.#{type}_html", default: '').presence
      hint ||= type && t("hints.#{type}", default: '').presence
      return unless hint
      content_tag :p, hint, class: 'help-block'
    end
def hint_of(metadata)
      type = metadata[:type]
      hint = metadata[:hint]
      # @see http://guides.rubyonrails.org/i18n.html#using-safe-html-translations
      hint ||= type && t("hints.#{type}_html", default: '').presence
      hint ||= type && t("hints.#{type}", default: '').presence
      return unless hint
      content_tag :p, hint, class: 'help-block'
    end
To fetch the hints from the following keys:
 - hints.#\{ type \}_html
 - hints.#\{ type \}
 @param metadata [Hash]
 @return [String, nil] HTML