Code used in learning Ruby on Rails