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.
Take a look at the open source (last tab is rails example). http://detectmobilebrowsers.com/