Developing SaaS with Rails. Part I