For anyone else who made this oversight while using Shotgun, be warned that sinatra-flash appears as though it isn't working, but really it is.
I'm assuming this is because Shotgun reloads the entire Sinatra app on each request, so sessions weren't working as they would normally.
So don't use shotgun while testing, use webbrick/unicorn/any other server.
Hopefully this saves someone else a lot of time!
P.S Maybe worth mentioning in the README somewhere?
For anyone else who made this oversight while using Shotgun, be warned that sinatra-flash appears as though it isn't working, but really it is.
I'm assuming this is because Shotgun reloads the entire Sinatra app on each request, so sessions weren't working as they would normally.
So don't use shotgun while testing, use webbrick/unicorn/any other server.
Hopefully this saves someone else a lot of time!
P.S Maybe worth mentioning in the README somewhere?