Ruby on Rails implementation