understanding rails