Twitta is a project mainly written in RUBY and JAVASCRIPT, it's free.
A sample twitta clone
Ruby on Rails Tutorial: my sample twitta application