There is Action Pack Variants in Rails 4.1+