It would really be nice to have access to ActionController methods from
within a behavior. F’rinstance, I wrote a behavior to generate Google
sitemaps (which I’ll share when it, uh, works), but I have no way to
know the proper URL for the site without url_for.
Apparently they have a similar problem in ActionMailer right now, and a
workaround goes like this, per a post from Pete Y. to rails-core:
@@controller = controller
@@controller.url_for(options) if @@controller
Any chance SiteController could do this for us?