# Two controllers

**URL:** <https://www.ruby-forum.com/t/two-controllers/109967>\
**Category:** Rails\
**Created:** [July 20, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/two-controllers/109967 "2007-07-20T19:31:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBC\_User](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Post date:** [July 20, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/two-controllers/109967/1 "2007-07-20T19:31:51Z")

</div>

Hi,

I created one controller first and did some routing and it worked  
fine. Later I added new controller. But when I try that controller, I  
get and error 'uninitialized constant ’ and singular name. What could  
be that I may be doing wrong?

Thanks,

---

<div class="post-metadata">

**Author:** ![DBC\_User](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Post date:** [July 22, 2007, 5:52am UTC](https://www.ruby-forum.com/t/two-controllers/109967/2 "2007-07-22T05:52:19Z")

</div>

DBC User wrote:

> I created one controller first and did some routing and it worked  
> fine. Later I added new controller. But when I try that controller, I  
> get and error 'uninitialized constant ’ and singular name. What could  
> be that I may be doing wrong?

Your question is far too general for anyone to answer. Show your  
controller code, and your routes.

Pete Y.

> **[Pete Yandell — Principal Engineer / Architect](https://notahat.com/)**
>
> Pete Yandell is an experienced Principal Software Engineer and Architect based in Melbourne, Australia.
