Creating a mobile version of your site in Rails 3.1

I recently added a mobile layout for Chess Microbase. To ensure the mobile content was just as optimized as the desktop version, and to help reduce the number of interactions (and therefore conflicts) between the desktop and mobile versions, I chose to make the mobile site run from separate view files. Here, I’ll give an explanation of how I made that work using Rails 3.1. I started with this helpful solution by Winfield Peterson on StackOverflow: »