SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •