sample application using rails4