Human readable controller_name


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


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



“show_names”.humanize => “Show names”

close enough?



Or maybe:

The controller is: <%= controller_name.humanize.titleize %>

Maurício Linhares (pt-br) |


these work great…

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