Rails: storing erb templates in database

后端 未结 3 1013
死守一世寂寞
死守一世寂寞 2020-12-17 02:20

Is it possible to store erb templates in database? How?

3条回答
  •  不思量自难忘°
    2020-12-17 03:06

    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

提交回复
热议问题