LoginTest is a project mainly written in RUBY and JAVASCRIPT, it's free.
This is a sample application for the ruby on rails tutorial by Michael Hartl