About request


#1

how to use request object in rails
e.g. i want get “User-Agent”

regards


#2

request.env[“HTTP_USER_AGENT”]


#3

jerrett wrote:

request.env[“HTTP_USER_AGENT”]

thanks! jerrett