Solutions Log

So I only have to figure things out once.

Title Case in ERb

Use .titleize or .titlecase. I’m using this in the <title> tag of my application.rhtml:

<%= controller.action_name.titleize %>

Source

Comments