rmbd Ruby Mobile Device Detector
Library to detect the browser and get detailed information about the browser’s capabilities. This is usefull to handle small-screen, mobile devices in a better way
Usage
gem sources -a http://gems.github.com
sudo gem install kiranmeduri-rmbd
Then load the gem in your app, in rails add config.gem in environment.rb
Now you can get the device/browser information in a controller as below
class SampleController < ApplicationController
def index
device_config = DeviceConfigDetector.detect_capabilities_for_request(request);
logger.debug("device config = #{device_config.inspect}")
end
end
Copyright
Copyright © 2009 Kiran Meduri. See LICENSE for details.