# One controller attached to many

**URL:** <https://www.ruby-forum.com/t/one-controller-attached-to-many/145137>\
**Category:** Rails\
**Created:** [August 6, 2008, 11:56am UTC](https://www.ruby-forum.com/t/one-controller-attached-to-many/145137 "2008-08-06T11:56:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [August 6, 2008, 11:56am UTC](https://www.ruby-forum.com/t/one-controller-attached-to-many/145137/1 "2008-08-06T11:56:41Z")

</div>

is this possible/good-practice to have one controller attached to many  
in REST…something like

work:  
has\_many :tasks

home:  
has\_many :tasks

personal:  
has\_many :tasks

and then store work\_id or home\_id, or personal\_id in tasks table.
