Capitalize only first character of string and leave others alone? (Rails)
- by Daniel O'Connor
Hi,
I'm trying to get Rails to capitalize the first character of a string, and leave all the others the way they are. I'm running into a problem where "i'm from New York" gets turned into "I'm from new york."
What method would I use to select the first character?
Thanks