How do I require a partial?
I'm fairly new to Rails and am trying to figure out how to add a method to the String class and have the code in my partial know that the String class has been added to. I'm not sure where I should put the require statement.
class String def some_new_func ... end end
(or, if you only want the monkeypatch for a specific controller, put the require in that controller).
See also: Rails /lib modules and