mobile version.

Ma Ber
2008-07-21T13:03:04Z

Hi, I am building 3 layouts of the same site: 1 for the web, 1 for the
iphone, 1 for the mobile (xhtml mp). I know if the request of my site is
from iphone with this string:

request.env["HTTP_USER_AGENT"] &&
request.env["HTTP_USER_AGENT"][/(Mobile/.+Safari)/]

How can I know when the request is from mobile or (in fact the same
result) is from internet web browsers?

Matteo.