Rails detecting mobile devices in request
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
MIT-LICENSE
README.rdoc
Rakefile
init.rb

README.rdoc

RequestMobile

Detecting mobile devices based on HTTP_USER_AGENT header

Install

ruby script/plugin install git@github.com:sumskyi/request_mobile.git

Usage

In you controller:

before_filter do |controller|
  tynimce_init unless controller.request.mobile?
end

def new
  some_stuff if request.mobile?
end

Copyright © 2010 Vladyslav Sumskyi, released under the MIT license