Learning Ruby on Rails Repository