Or maybe: <title> The controller is: <%= controller_name.humanize.titleize %></title>
- Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Fri, Feb 20, 2009 at 4:54 PM, Denis Haskin <[email protected]> wrote: > "show_names".humanize => "Show names" > > close enough? > > dwh > > > Sergio Ruiz wrote: > > 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: > > <title> The controller is: <%= controller_name %></title> > > and i can get: > > <title>The controller is: show_names</title> > > but i would like to get: > > <title> The controller is: Show Names </title> > > thanks! > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

