# How to implement user editable templates?

**URL:** <https://www.ruby-forum.com/t/how-to-implement-user-editable-templates/135484>\
**Category:** Rails\
**Created:** [April 22, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-implement-user-editable-templates/135484 "2008-04-22T16:54:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [April 22, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-implement-user-editable-templates/135484/1 "2008-04-22T16:54:12Z")

</div>

In my application, every user has a mini-portal, where his visitors go  
and I want this to be customized to fit the rest of his website (on  
his server).

Ideally, this should include HTML files, which users can upload and  
will be used as template for their pages. The HTML files can include a  
single element, that I want to replace in my view / controller to pass  
the page contents that Rails generates. Effectively, this would let me  
wrap the Rails contents inside a user editable template.

All I need is a single HTML file per user. I’ll instruct users to keep  
images and stylesheets on their server.

What would be a good way for implementing this in Rails?

Thanks,  
Helzer
