Hello again,
I guess this is more of a Ruby question, but here goes anyways...
I want to intercept all calls to non existent class methods and then call an existing class method with the non existent name.
In code...
class MyModel < ActiveRecord::Base
def MyModel.method_missing(symbol, *args) MyModel.func(symbol.id2name) end
def MyModel.func(func_called) puts "You called #{func_called}" end
end
When I try this code, it gets lost in recursion.
Thanks for the help.