search for: write_prescript

Displaying 1 result from an estimated 1 matches for "write_prescript".

2006 Nov 06
2
where to provide additional methods to classes
Hello All, I have a little question on rails. For instance, if I need to provide additional method to the Object class (method that I could use in all the classes then), where can I put this code: class Object def my_new_method_1 ... end def my_new_method_2 ... end end I mean... can I add this in my_controlller.rb after the controller class definition ? Can I put it anywhere next to a class