Reputation: 46509
What are Rails developers doing to detect device details on the server? There seem to be a few old WURFL libs, but nothing recently.
I'm using responsive design and want to avoid sending out images that will be hidden anyway, since browsers display them. (There are some client-side workarounds like using background-image, but they make the client unnecessarily complex.)
Detecting width would be particularly useful, as it corresponds to Bootstrap and similar responsive frameworks.
Upvotes: 1
Views: 1117
Reputation: 508
Another open source detection software you might want to check out would be 51Degrees.mobi. They have PHP, C and a few other implementations you might find useful.
Upvotes: 0
Reputation: 76
Little late to the party here, but we do have a WURFL Cloud Client in Ruby that may meet your needs. http://www.scientiamobile.com/cloud
Upvotes: 0
Reputation: 4829
Take a look at the open source (last tab is rails example). http://detectmobilebrowsers.com/
Upvotes: 3