I am BARRY's Microblog

Follow @bjhess on Micro.blog.

Rails TIL. In Rails 7 you need to render with a status code in order for Flash.now to appear.

Flash.now[:errors] = 'This is an error'  
render :edit, status: :whatever_status

It’s wild because I could debug the view and see the Flash is set. But nothing displayed.