A practice in front-end using rails