bjhess
bjhess

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.

|
Embed
Progress spinner
In reply to
bjhess
bjhess

@bjhess This basically goes for any render :page that has changes like flash messages or error messages etc.

|
Embed
Progress spinner