# Admin pages and site pages

**URL:** <https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121>\
**Category:** Rails\
**Created:** [May 2, 2007, 1:50am UTC](https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121 "2007-05-02T01:50:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ungaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@ungaro](https://www.ruby-forum.com/u/ungaro)\
**Post date:** [May 2, 2007, 1:50am UTC](https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121/1 "2007-05-02T01:50:10Z")

</div>

very basic question, but i couldn’t understand how to do it in rails:

i want to code a website and its administration interface in RoR.  
how do i create a controller in admin subfolder? Can these controller  
share actions from its parent folder?

---

<div class="post-metadata">

**Author:** ![ungaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@ungaro](https://www.ruby-forum.com/u/ungaro)\
**Post date:** [May 24, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121/2 "2007-05-24T17:24:16Z")

</div>

Alp Guneysel wrote:

> very basic question, but i couldn’t understand how to do it in rails:
> 
> i want to code a website and its administration interface in RoR.  
> how do i create a controller in admin subfolder? Can these controller  
> share actions from its parent folder?

You should have a look to the DEPOT application in the Heinemeier  
Book:“Agile Web D. with Rails”.

They have an app with a store part and the administration part, perhaps  
it will help you.
