Is it possible to store erb templates in database? How?
I'm also working on an almost same concept as you are working on. I also need my clients to create their own web sites
Initially i also had the idea of saving all the erbs in the database, but later i have given up that idea as even though it works for plain text pages, when you want to render components and partials it will not be easy.
and mainly i had problems on saving layout.erb files in the database
so i decided to go in a way that page will construct upon the subdomain
cheers, sameera