I have a paperclip interpolation that I want to use one of my view helpers for. I have the route set up so I can use
foo_bar_photo_path
so I just want to use that in the interpolation as well.
Paperclip::Attachment.interpolations[:mykey] = lambda do |a,s
foo_bar_photo_path(something,something)
end
Unfortunately, it whines with undefined method.
How can I get access to this method, or is there a better way of doing this?