SaaS-Development-Framework is a project mainly written in Ruby, it's free.
SaaS Development Framework for Ruby on Rails
update