# Map a resource to another controller

**URL:** <https://www.ruby-forum.com/t/map-a-resource-to-another-controller/187310>\
**Category:** Rails\
**Created:** [April 21, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/map-a-resource-to-another-controller/187310 "2010-04-21T14:57:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtacconi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/13edae/32.png) [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Post date:** [April 21, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/map-a-resource-to-another-controller/187310/1 "2010-04-21T14:57:59Z")

</div>

Hi,

I have a Page controller. I use it as a tree structure to manage pages  
in a CMS. Is it possible to map an address /pages/1 to another  
controller, say /forum ?

I need it because not every page should be a CMS page but sometimes it  
should display another module, a forum, a gallery… etc…
