Rails theory