Hi
I just want to do a simple output on my machine showing the ie browser.
Every example of request.env[‘HTTP_USER_AGENT’] that I have seen shows
no gem requirement. However, when I try to run this on my computer, I am
getting the error below. Do you know what I am doing wrong here? Thanks
MC
puts request.env[‘HTTP_USER_AGENT’].gsub(//| /, ‘’)
Error:
browserVersion.rb:3: undefined local variable or method `request’ for
main:Object (NameError)