Rack::Flash

Posted by Christopher Rigor on March 20, 2009 
Filed Under Uncategorized

One advantage of using rack is having access to rack middleware. rack-flash is a middleware which you can use for flash hash on your rack apps.

If you’re using sinatra, the syntax is similar to rails. Check out the rack-flash page here.

I added rack-flash to my sinatra app. Check out the git commit. Since rack-flash uses the session, don’t forget to add Rack::Session::Cookie.

Watch the video of Jon Crosby’s talk In a World of Middleware, Who Needs Monolithic Applications? at Mountain West Ruby Conference 2009 for more on rack middleware.

Comments

blog comments powered by Disqus