rails4 version of the app.