# Namespaced resource generation with resource\_controller

**URL:** <https://www.ruby-forum.com/t/namespaced-resource-generation-with-resource-controller/159623>\
**Category:** Rails\
**Created:** [February 6, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/namespaced-resource-generation-with-resource-controller/159623 "2009-02-06T13:26:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathieu\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@mathieu\_r](https://www.ruby-forum.com/u/mathieu_r)\
**Post date:** [February 6, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/namespaced-resource-generation-with-resource-controller/159623/1 "2009-02-06T13:26:08Z")

</div>

Hello,

I’ve tried to generate a resource using a pre-defined namespace (admin),  
but  
it seems i could not make it work out of the box. I’ve managed to do it  
with  
pretty few hacking step and made a post out of my experience:

[http://rails.anyware-technologies.com.br/2009/01/19/namespaced-resource-generation-with-resource\_controller/](http://rails.anyware-technologies.com.br/2009/01/19/namespaced-resource-generation-with-resource_controller/)

Michael K. commented about a way to do it in one generating step,  
but it  
did not work the way i wanted to.

Anyone know a way to do this out of the box?

Thanks

Mathieu
