Initial rails4 port