I\'m running Rails 2.3.2.
How do I convert \"Cool\" to \"cool\"? I know \"Cool\".downcase works, but is there a Ruby/Rails method
\"Cool\"
\"cool\"
\"Cool\".downcase
You can use tap (so that it fits on one line):
"JonSkeet".tap { |e| e[0] = e[0].downcase } # => "jonSkeet"