method_missing tip
When using ruby’s method_missing
, don’t alter the method
parameter before calling super
(you are calling super
, aren’t you?). Otherwise, you will get a very clear exception:
ArgumentError: no id given
Thanks to google and Nicholas Schlueter for the tip.