Sample_app is a project mainly written in JAVASCRIPT and RUBY, it's free.
This is the sample application for http://railstutorial.org/
This is the sample application for Ruby on Rails Tutorial: Learn Rails by Example