# Need advice on RoR app design

**URL:** <https://www.ruby-forum.com/t/need-advice-on-ror-app-design/53290>\
**Category:** Rails\
**Created:** [January 31, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/need-advice-on-ror-app-design/53290 "2006-01-31T14:47:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Post date:** [January 31, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/need-advice-on-ror-app-design/53290/1 "2006-01-31T14:47:46Z")

</div>

Fellow Railers,

Is there anything, anywhere, that I can read that discusses overall RoR  
app design? I have the Agile RoR book, which is great for learning the  
details of RoR, but unfortunately doesn’t cover the overall issue of  
creating a large, complex RoR app.

My staff and I are still in the process of getting up to speed on Ruby  
and RoR, but we also need to begin thinking about the best approach to  
converting our very large and complex Win32 (Delphi) DB app over to RoR.  
For (simple) example, our app currently has 42 DB tables. Would it be  
considered bad design in RoR to have 42 separate controllers, or should  
we create one generic controller that handles all the basic CRUD for all  
the tables?

I believe there are some new RoR books coming out later this year, which  
may help, but we could really use some help _right now_.

Thanks to all who respond!

P.S. I see that the 37Signals guys are putting on a workshop where they  
discuss things such as big-picture design. Sounds like maybe something  
I should attend…

---

<div class="post-metadata">

**Author:** ![sweetpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Post date:** [January 31, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/need-advice-on-ror-app-design/53290/2 "2006-01-31T15:24:56Z")

</div>

This is a good question. You probably don’t want one controller for  
each table. I thought of my app in terms of the major objects that  
get operated on, and created a controller for each. That ended up  
being 3, for about the same number of tables you have.

For a manufacturing app, for example, you might have controllers for  
Jobs, Components, Bills of Material, Equipment, etc.

The way the scaffold is set up is pretty quickly left behind.

On 1/31/06, Peter J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> For (simple) example, our app currently has 42 DB tables. Would it be  
> discuss things such as big-picture design. Sounds like maybe something  
> I should attend…
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
"Her faults were those of her race and sex; her virtues were her own.  
Farewell, and if for ever - "

– “Travels with a Donkey in the Cevennes” by Robert Louis Stevenson

---

<div class="post-metadata">

**Author:** ![sweetpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Post date:** [January 31, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/need-advice-on-ror-app-design/53290/3 "2006-01-31T21:56:38Z")

</div>

I would infact group those controllers in modules

For example  
app/controller/blog  
app/controller/forum

On 1/31/06, Ian H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > converting our very large and complex Win32 (Delphi) DB app over to RoR.  
> > P.S. I see that the 37Signals guys are putting on a workshop where they

–

Rgds,  
–Siva J.  
[http://www.varcasa.com/](http://www.varcasa.com/)  
My First Rails Project. Powered by Typo and soon by RForum too
