# Human readable controller\_name

**URL:** <https://www.ruby-forum.com/t/human-readable-controller-name/160904>\
**Category:** Rails\
**Created:** [February 20, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/human-readable-controller-name/160904 "2009-02-20T20:41:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [February 20, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/human-readable-controller-name/160904/1 "2009-02-20T20:41:45Z")

</div>

was wondering if it’s possible to have a human readable controller name  
in my page title…

ie:

if my controller name is: show\_names

i can have my view do:

 The controller is: \<%= controller\_name %\>

and i can get:

The controller is: show\_names

but i would like to get:

 The controller is: Show Names 

thanks!

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [February 20, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/human-readable-controller-name/160904/2 "2009-02-20T20:55:28Z")

</div>

“show\_names”.humanize =\> “Show names”

close enough?

dwh

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [February 20, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/human-readable-controller-name/160904/3 "2009-02-20T20:58:36Z")

</div>

Or maybe:

 The controller is: \<%= controller\_name.humanize.titleize %\>
- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [February 20, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/human-readable-controller-name/160904/4 "2009-02-20T21:07:24Z")

</div>

these work great…

i can’t figure out why i couldn’t find them earlier…

thanks!
