Forum: Ruby on Rails Read User Agent

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Alex A. (Guest)
on 2006-04-13 19:19
Does anyone know how to read the user agent from a controller ?

Thanks
Chang Sau S. (Guest)
on 2006-04-13 19:53
(Received via mailing list)
Use @request.env['HTTP_USER_AGENT']


Alex A. wrote:
> Does anyone know how to read the user agent from a controller ?
>
> Thanks
>
>


--
Sau S.

http://blog.saush.com
http://read.saush.com
http://jaccal.sourceforge.net
This topic is locked and can not be replied to.