Fixing rotation handling, and fixing errors on home.html.erb