# Improved support for model namespaces

**URL:** <https://www.ruby-forum.com/t/improved-support-for-model-namespaces/141285>\
**Category:** Rails\
**Created:** [June 24, 2008, 11:10am UTC](https://www.ruby-forum.com/t/improved-support-for-model-namespaces/141285 "2008-06-24T11:10:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrikauhanen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3ec8ea/32.png) [@harrikauhanen](https://www.ruby-forum.com/u/harrikauhanen)\
**Post date:** [June 24, 2008, 11:10am UTC](https://www.ruby-forum.com/t/improved-support-for-model-namespaces/141285/1 "2008-06-24T11:10:59Z")

</div>

I wanted Rails to support namespaced models even better that it does  
today. So I wrote a patch that will make Rails generators support  
namespaced models. You could e.g. script/generate scaffold Animal::Dog  
and get fullly working (namepaced) web interface, test cases and  
fixtures. I also changed the table name convention (e.g. animal\_dog).

I wrote a blog entry and ticket (including the patch) to Rails  
Lighthouse. Enjoy (the summer 🙂

[http://blog.humaneq.com/2008/6/24/namespaced-models-in-rails](http://blog.humaneq.com/2008/6/24/namespaced-models-in-rails)  
[http://rails.lighthouseapp.com/projects/8994/tickets/445-improved-support-for-model-namespaces-fixtures-generators-table-naming](http://rails.lighthouseapp.com/projects/8994/tickets/445-improved-support-for-model-namespaces-fixtures-generators-table-naming)

-harri.
