Ruby on Rails: Converting "SomeWordHere" to "some word here"
- by sjsc
I know you can do something like:
"SomeWordHere".underscore.gsub("_", " ")
to get "some word here".
I thought that might be a little too much for something so simple. Is there a more efficient way (maybe a built-in method?) to convert "SomeWordHere" to "some word here"?