Rack::MobileDetect detects mobile devices and adds an X_MOBILE_DEVICE header to the request if a mobile device is detected. Specific devices can be targeted with custom Regexps and redirect support is available.
Tom Alison
gem "rack-mobile-detect", "~> 0.4.0"