@ -1,2 +1,5 @@
class ApplicationController < ActionController::Base
private
def flash_stream = turbo_stream.replace(:notification, partial: 'layouts/notification')
end
@ -5,7 +5,7 @@ class FlashController < ApplicationController
def turbo_notice
flash[:notice] = 'From Turbo'
flash[:alert] = 'Alert Turbo'
render turbo_stream: turbo_stream.replace(:notification, partial: 'layouts/notification')
render turbo_stream: flash_stream
def redirect_with_notice