How to Install ruby-rack-mobile-detect in Ubuntu 18.04



Install ruby-rack-mobile-detect by entering the following commands in the terminal:

sudo apt update
sudo apt install ruby-rack-mobile-detect

Description:

rack middleware for ruby webapps to detect mobile devices

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.

Homepage: https://github.com/talison/rack-mobile-detect

Version: 0.4.0-4

Section: universe/ruby