Pass requests for non-static pages to rails