# two controllers

**URL:** <https://discuss.rubyonrails.org/t/two-controllers/15923>\
**Category:** rubyonrails-talk\
**Created:** [July 20, 2007, 5:30pm UTC](https://discuss.rubyonrails.org/t/two-controllers/15923 "2007-07-20T17:30:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBC\_User](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@DBC\_User](https://discuss.rubyonrails.org/u/DBC_User)\
**Post date:** [July 20, 2007, 5:30pm UTC](https://discuss.rubyonrails.org/t/two-controllers/15923/1 "2007-07-20T17:30:43Z")

</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:** ![notahat](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@notahat](https://discuss.rubyonrails.org/u/notahat)\
**Post date:** [July 22, 2007, 3:51am UTC](https://discuss.rubyonrails.org/t/two-controllers/15923/2 "2007-07-22T03:51:27Z")

</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 Yandell

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