11175
(-- --)
1
Overriding method missing in ActionController destroys magic even when
passed back
ie.
def method_missing(method, *args)
if some_condition
do_something
else
#let rails handle it normally
super(method,args)
end
end
if I don't over ride method missing then i can call a view without an
action
with the override i get a method missing error.
MAJIC
Overriding method missing in ActionController destroys magic even when
passed back
ie.
def method_missing(method, *args)
if some_condition
do_something
else
#let rails handle it normally
super(method,args)
end
end
you should call super(method, *args) not super(method, args) (ie pass
the arguments, not an array of them)
Fred