rails stuctured