How to use ruby to detect iPad # Request from an iPhone or iPod touch? (Mobile Safari user agent) def iphone_user_agent? request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/] end Published: March 15 2012 category: tags: Ruby 12 Related Posts • iOS ARC trap • Check how many client connected to your internet sharing on your mac • Prevent iCloud backup your downloadable content on iOS • Use bower in rails • jquery page scroll animation • How to solve the error: no decode delegate for this image format • Capistrano with bundler • New xcode uncomfortable things • Problem with carrierwave when you have two servers • use ActiveSupport::Configurable to store config options Tweet Please enable JavaScript to view the comments powered by Disqus. blog comments powered by Disqus