Initial rails code