url_for_file_column undefined method

I am trying to use this helper method in my controller and I am getting this error. how to fix this?

thanks