If on Ruby on Rails, I need to add a method called
class String
  def capitalize_first
    # ...
  end
end
and wonder where should the file go to? (which directory and filename, and is any initialize code needed?) This is for a Rails 3.0.6 project.
 
     
     
     
    