I developed a RSS Reader using responsive design but the site did not snap to my iPhone screen.

I solved this problem in a Hackathon a few months ago so I revisited my old code to grab this:

<meta name="viewport" content="width=device-width,initial-scale=1">

Add this to your header for mobile device detection.

Rails developers, add this to app/views/layouts/application.html.erb.

Comments