Does anyone know how to read the user agent from a controller ?
Thanks
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://blog.saush.com
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs