sample for rails