This blog shows very good example of  variants for rails 4.1.



This can be used for Mobile, Tables and Desktops and Can be used with ActionModel.



Fun with Variants and Enums in Rails 4.1: