In rails 5 you can use add_flash_types
method. Just add it to ApplicationController and include the types you want:
# application_controller.rb
...
add_flash_types :success, :warning, :danger, :info
on your controller use the appropriate type instead of 'notice':