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