Learing to code in rails