Learn Rails tutorial -Chapter 3-Sample App