Read User Agent

Does anyone know how to read the user agent from a controller ?

Thanks

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://read.saush.com
http://jaccal.sourceforge.net

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs