Hi All,
I want to get a browser information which user use on its machine but,
I want to get only by using ruby not want to use rails.
i tried
puts ENV[‘HTTP_USER_AGENT’]
but it gives nil.
so please if any one has idea help me.
Thanks,
Priyank S.
Hi All,
I want to get a browser information which user use on its machine but,
I want to get only by using ruby not want to use rails.
i tried
puts ENV[‘HTTP_USER_AGENT’]
but it gives nil.
so please if any one has idea help me.
Thanks,
Priyank S.
On Linux you can use:
browser = ENV[“BROWSER”].
*
*
This returns executable filename of browser. For example: google-chrome,
firefox.
On Mon, Dec 6, 2010 at 10:10 AM, Sniper A. <
Priyank S. wrote in post #966420:
I want to get a browser information which user use on its machine but,
I want to get only by using ruby not want to use rails.
What do you mean “only by using ruby not want to use rails” ?
may be try this
request.env[“HTTP_USER_AGENT”]
Regards
Thaniyarasu
Castlerock Research
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