Sample_app is a project mainly written in Ruby, it's free.
Ruby on Rails Tutorial Sample Application
This is the sample application for Ruby on Rails Tutorial: Learn Rails by Example by Michael Hartl.