This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
rmbd /
| name | age | message | |
|---|---|---|---|
| |
.document | ||
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION.yml | ||
| |
lib/ | ||
| |
rmbd.gemspec | ||
| |
test/ |
README.rdoc
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.








