Simple Rails app, mostly scaffolding. I want to detect whether the user is using Android or iPhone to access my app. What\'s the easiest way to do that?
if request.env['HTTP_USER_AGENT'].downcase.match(/android|iphone/) puts "yup, its mobile" end