# What's the default table name for a model nested in a module

**URL:** <https://www.ruby-forum.com/t/whats-the-default-table-name-for-a-model-nested-in-a-module/68777>\
**Category:** Rails\
**Created:** [September 15, 2006, 12:09pm UTC](https://www.ruby-forum.com/t/whats-the-default-table-name-for-a-model-nested-in-a-module/68777 "2006-09-15T12:09:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gareth\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Post date:** [September 15, 2006, 12:09pm UTC](https://www.ruby-forum.com/t/whats-the-default-table-name-for-a-model-nested-in-a-module/68777/1 "2006-09-15T12:09:34Z")

</div>

Say I have a model

class Woodwork::Table \< ActiveRecord::Base  
end

Where will AR look for this in the database by default?

Gareth

---

<div class="post-metadata">

**Author:** ![Gareth\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Post date:** [September 15, 2006, 12:43pm UTC](https://www.ruby-forum.com/t/whats-the-default-table-name-for-a-model-nested-in-a-module/68777/2 "2006-09-15T12:43:40Z")

</div>

Hey all!

I jumped on RadRails yesterday and i love it!  
I exported some of the code templates and saw they were xml

So i spent a section of this morning hacking together a simple little  
app that  
lets you roll your own templates and exports them to xml,  
which you can then import into RadRails

Dunno if this is useful to anyone else, but i thought i’d inform the  
community!

You can check it out at  
[http://radrails.rails.co.za](http://radrails.rails.co.za)

I haven’t tested it thoroughly, so if there are weird things happening,  
i’d appreciate it if you tell me about them so i can fix them!

Feel free to mail me!  
gustav [at] rails [dot] co [dot] za

Cheery-O!  
Gustav

> **[ItsDex.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=itsdex.com)**
>
> We help you acquire the perfect domain for your site. Affordable payment options. Quick and responsive customer support available.

–  
about me:  
My greatest achievement was when all the other  
kids just learnt to count from 1 to 10,  
i was counting (0…9)

- gustav.paul

---

<div class="post-metadata">

**Author:** ![Gareth\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Post date:** [September 15, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/whats-the-default-table-name-for-a-model-nested-in-a-module/68777/3 "2006-09-15T16:54:46Z")

</div>

Nice work, Gustav! Handy tool. Now, what would be a great addition is  
some  
sort of archive of all the user-created templates. There are tons of  
possiblities out there, it’d be nice to have a repository. That’s one  
the  
reasons I still dip into jEdit: someone created over 100 Rails  
templates[http://synthesis.sbecker.net/pages/jedit-snippets-for-ruby-on-rails-docs](http://synthesis.sbecker.net/pages/jedit-snippets-for-ruby-on-rails-docs)that  
makes editing super-quick. I’ve tried converting the jEdit ones to  
Eclipse’s format, but they are some sort of encoded Java format…no  
luck.

Anyways, nice job.

ed

On 9/15/06, Gustav - Railist [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> which you can then import into RadRails  
> Feel free to mail me!  
> i was counting (0…9)
> 
> - gustav.paul
> 
> >

–  
Ed Hickey  
Developer  
Litmus Media  
816-533-0409  
removed\_email\_address@domain.invalid  
A Member of Think Partnership, Inc  
[www.ThinkPartnership.com](http://www.ThinkPartnership.com)  
Amex ticker symbol: THK
