An application to experiment with Rails variants. Variants are an alternative to responsive css. With responsive css, the same html is downloaded on all devices and content is hidden or modified via CSS. Variants, instead, allow us to render different view templates based on device type. Device-specific view templates are easier to author and maintain than multi-purpose templates.
Demo Heroku app is here.
rake
-
Install the Heroku toolbelt on local workstation (if not already installed).
-
Create the Heroku app (if not already created).
heroku apps:create
-
git push heroku master
-
Run migrations
heroku run rake db:migrate
-
Visit the deployed app
heroku open