Detect iPad 3 in Ruby
问题 Is it possible to detect an iPad 3 (aka The new iPad) using ruby/rails? If so, how would I go about doing it? 回答1: You can detect the device but I do not think it is possible to detect device version. As far as I know, Apple provides a user agent string which appears as follows: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10 There is no machine version information in this string and I do not know