# Thoughts on CMS integration?

**URL:** <https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310>\
**Category:** Rails\
**Created:** [April 12, 2009, 1:01am UTC](https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310 "2009-04-12T01:01:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliottg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b77776/32.png) [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Post date:** [April 12, 2009, 1:01am UTC](https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310/1 "2009-04-12T01:01:19Z")

</div>

I am building a small/medium sized ecomm site that will be managed  
through a little Rails CMS I have built. I’ve built a few CMSs in PHP  
in the past… In those projects the CMS would always live in its own  
directory and the public site in its own. Of course the two would  
share the same DB, but their source code would be logically separated  
into the front and back end.

Would this be the best way to do this in Rails as well?

I would prefer to separate the front end and back end, but I just want  
others input on this and perhaps a good way to handle it. Having both  
aspects of the project all in same app seems kinda messy, but I am not  
that clear on how to share a database between two apps, especially  
since it would seem that duplicate models would have to be in both the  
front and back end apps.

Thanks

---

<div class="post-metadata">

**Author:** ![elliottg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b77776/32.png) [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Post date:** [April 13, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310/2 "2009-04-13T16:39:18Z")

</div>

Any thoughts on this guys?

Also just to clarify, Both the front end and back end would be Rails.  
I’m just wondering if putting both sets of functionality into the same  
app

IE

$ rails front\_end\_and\_back\_end

Is the best way to go?

Thanks
