Rails class