My-Serve Mobile App

As much as I respect responsive design, it's not a silver bullet for the multi-device web. In some cases, it's more appropriate to tailor views to serve the most relevant content and UI to specific device categories (tablet, phone, desktop).

New with Rails 4.1 are Action Pack Variants, a helpful way to have more control over how views will be used by the app, helping to remove extra logic from the code and allow the framework to handle device specific interfaces with a more elegant solution.

For our team this is really useful because now we can serve a much slimmer version of the app to mobile devices, instead of hiding the elements using CSS using media queries.

View all tags
Posted on Dec 18, 2014

More by Jamie McCue

View profile