Where do i put an modified String class?


#1

hi, i have added a few methods to the String class and im unsure where
in my rails app to put them. Any ideas?

Thanks,
Chris


#2

Chris wrote:

hi, i have added a few methods to the String class and im unsure where
in my rails app to put them. Any ideas?

Thanks,
Chris

The lib directory should work fine. If your file is string_methods.rb,
put this in your environment.rb:
require “lib/string_methods”

–josh
http://blog.hasmanythrough.com