turn into rails