Hi All,
In my application controller, I have a method that is supposed to check for the existence of another method in a subclassed controller to set the filename of a downloaded file, but i'm having trouble making it work properly
i've tried
def filename
begin
send "filename_method"
rescue NoMethodError
default_filename
end
end
and
def filename
if respond_to?("filename_method")
send "filename_method"
else
default_filename
end
end
but both always return default_filename, even if filename_method is defined in the subclassed controller. Can someone point me in the right direction here?
Thanks,
-C