Ruby on Rails Tutorial code.