learn rails's sample