From the rails and bootstrap tutorial from railsapps.com