# Mini CMS

**URL:** <https://www.ruby-forum.com/t/mini-cms/144312>\
**Category:** Rails\
**Created:** [July 28, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/mini-cms/144312 "2008-07-28T15:17:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![messismore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@messismore](https://www.ruby-forum.com/u/messismore)\
**Post date:** [July 28, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/mini-cms/144312/1 "2008-07-28T15:17:22Z")

</div>

Hi,

I’m wanting to build a mini CMS in RoR and have got to grips with the  
terminology, can link up to databases etc.  
I have 3 pages, Home, About and Portfolio and want these to have an  
admin area where I can let people add and delete content. What would be  
the best way to log people in using sessions?

I was thinking that with a page like portfolio which would hold images,  
text etc., the editing page would be at “app/portfolio/edit.html.erb”.  
How could I stop a internet user from seeing this page and only allow  
them to see “app/portfolio/index.html.erb”?

Thanks for any advice.  
Clinton
