class LinksController < ApplicationController
def create
@link = Link.create!(link_params)
@warning = Links::ReachabilityCheck.new(@link).warning
respond_to { |f| f.turbo_stream; f.html { redirect_to @link } }
end
end
Sometimes you want to show non-blocking warnings (e.g., “link looks unreachable”) while still saving. Turbo streams can append warnings to a panel without rerendering the whole page.