# Change the View Directory

**URL:** <https://www.ruby-forum.com/t/change-the-view-directory/186825>\
**Category:** Rails\
**Created:** [April 13, 2010, 2:07am UTC](https://www.ruby-forum.com/t/change-the-view-directory/186825 "2010-04-13T02:07:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@brent](https://www.ruby-forum.com/u/brent)\
**Post date:** [April 13, 2010, 2:07am UTC](https://www.ruby-forum.com/t/change-the-view-directory/186825/1 "2010-04-13T02:07:06Z")

</div>

How do I change the view directory?

My situation is: I am creating a CMS for personal use, that I will  
also have a public view for people to play with the CMS without  
harming the DB. I’m thinking of creating a new app that takes from a  
different DB, but uses the same views (so I don’t have to duplicate  
anything).

I suppose I could use the same app and tell the controllers to take  
from the dumby db if a test user is logged in. But I feel like I would  
be safer this way.

Any thoughts?
