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
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
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”
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs