You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
481 B
16 lines
481 B
class NotificationController < ApplicationController
|
|
def index
|
|
logger.info 'index'
|
|
end
|
|
|
|
def show_notice
|
|
# flash.alert = 'toto'
|
|
flash.alert = %w[titi toto] if params[:multiple] == 'true'
|
|
redirect_to notification_index_path, notice: 'this is a notice'
|
|
end
|
|
|
|
def show_alert
|
|
flash.notice = ['<i>italic</i> <b>message</b>', 'normal <b>message</b>'] if params[:multiple] == 'true'
|
|
redirect_to notification_index_path, alert: 'this is an alert'
|
|
end
|
|
end
|