Rack is the underlying technology behind Ruby web applications. This is an introduction to rack talk given at Myanmar Ruby Geeks Meetup #2 , Feb, 2016.
Acts as filters for HTTP req/res • Common API for accessing req/res • No more interface code for web servers • Middlewares can be mounted on each other • Interoperability between Rack-based Frameworks
accepts an app variable in initialize • Define a method #call • Use Rack::Request and Rack::Response classes to access req/res • Read other middlewares' source codes, *Seriously it's just a simple ruby class usually.
burmese inputs to Unicode • Used mmfont gem by @yelinaung and font detection code by @thuyamyonyunt • http://github.com/dreamingblackcat/mmunicode _rails