# Overriding Camelization of ActionController Name

**URL:** <https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019>\
**Category:** Rails\
**Created:** [June 16, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019 "2007-06-16T17:49:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [June 16, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019/1 "2007-06-16T17:49:21Z")

</div>

Hi all,

I have a controller that I wanted named KETaskController, defined in  
the file ke\_task\_controller.rb, but Rails wants to reference the  
controller class as KeTaskController. Specifically, my controller  
class is defined as:

class KETaskController \< ApplicationController

but Rails expects something different according to its naming  
conventions:

LoadError (Expected script/…/config/…/app/controllers/  
ke\_task\_controller.rb to define KeTaskController)

Now, I can see where I can override pluralization rules for singular  
nouns, but I don’t know where I can tweak the camelization of a  
specific controller name.

It’s not a huge deal – I could just use KeTaskController – but  
that’s a bit confusing because KE stands for Knowledge Engineering in  
this app.

Any thoughts? Many thanks,

- David

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [June 16, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019/2 "2007-06-16T18:18:06Z")

</div>

On Jun 16, 10:49 am, David B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi all,
> 
> I have a controller that I wanted named KETaskController, defined in  
> the file ke\_task\_controller.rb, but Rails wants to reference the  
> controller class as KeTaskController. Specifically, my controller  
> class is defined as:
> 
> class KETaskController \< ApplicationController

I think you can just name file file k\_e\_task\_controller.rb, since the  
camelization is based on the position of the underscores.

Jeff

> **[Hey Daddio!](http://softiesonrails.com)**
>
> Home of Hey Daddio Software
