example of code while learn ruby on rails.