Demo_app is a project mainly written in RUBY and JAVASCRIPT, it's free.
ruby on rails tutorial chapter 2
Ruby on Rails tutorial Chapter 2