app/helpers/alchemy/base_helper.rb
# Logs a message in the Rails logger (warn level)
# and optionally displays an error message to the user.
Logs a message in the Rails logger (warn level)
and optionally displays an error message to the user.
Logs a message in the Rails logger ( warn level ) and optionally displays an error message to the user .
def warning(message, text = nil)
      Logger.warn(message, caller(0..0))
      unless text.nil?
        warning = content_tag('p', class: 'content_editor_error') do
          render_icon('warning') + text
        end
        return warning
      end
    end
def warning ( message , text = nil ) Logger . warn ( message , caller ( 0 .. 0 ) ) unless text . nil? warning = content_tag ( 'p' , class : 'content_editor_error' ) do render_icon ( 'warning' ) + text end return warning end end
Logs a message in the Rails logger (warn level)
and optionally displays an error message to the user.
Logs a message in the Rails logger ( warn level ) and optionally displays an error message to the user .
message
<not_specific>
text
<not_specific>