# How to get dependent Model(s) from Controller

**URL:** <https://www.ruby-forum.com/t/how-to-get-dependent-model-s-from-controller/98256>\
**Category:** Rails\
**Created:** [July 13, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-get-dependent-model-s-from-controller/98256 "2006-07-13T15:27:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mclow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@mclow](https://www.ruby-forum.com/u/mclow)\
**Post date:** [July 13, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-get-dependent-model-s-from-controller/98256/1 "2006-07-13T15:27:16Z")

</div>

How can I get the dependent Model class from a Controller?

I tried PeopleController.model and  
PeopleController.dependecies\_on(:model) with  
no success. I’d like to avoid going through the  
Inflector.classify(self.controller\_name) workaround.

Thanks.

Cheers,  
Marco
