-
Ruby on Rails: Need to pull Server variables down into a form
Hi All,
I am needing to pull down some user information about the visitors OS and browser in rails.
how can I do this?
These will be hidden fields in a form submission, so is this possible and if so, what is the proper syntax for doing this in rails?
Thanks,
Bryan
-
Have a look at http://api.rubyonrails.com/classes/A...ctRequest.html
You get the full list of options but as an example request.remote_ip will give you the originating ip.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks