The README addresses this:
flash[:notice] = "You can stop rolling your own now."
It feels like rack-flash functionality could easily be written yourself and a gem is a little overkill. Is there something Rack provides that I'm missing?
Yes:
- It's distributed as a gem, so you don't have to copy your flash implementation across projects. This reusability is key.
- The interface is consistent with Rails, so future maintainers of your code won't have to study your idiosyncratic implementation.
- It's well tested and developed in a community.
- You're not wasting your time reinventing a small cog.
Unless your app's core functionality is flashing messages, this little ~100 SLOC gem that provides the above benefits is hardly overkill.