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.
2e3d01ef4f4cb07809aaacf837b0d006?d=identicon&s=25 Alex Amat (alexamat)
on 2006-04-13 17:19
Does anyone know how to read the user agent from a controller ?

Thanks
D2a5b7975f49e051c1de10f98ea81f63?d=identicon&s=25 Chang Sau Sheong (Guest)
on 2006-04-13 17:53
(Received via mailing list)
Use @request.env['HTTP_USER_AGENT']


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


--
Sau Sheong

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