title: Alternative to url_for in ActionController::Base
body: <p>I'm trying to pass a url to a background process so that it can post it on facebook/tweet it.</p>
  
  <pre><code>class Weeklychecks &lt; ActionController::Base
  .
  .
  .
     def self.verifications
     .
     .
     .
     @my_url = url_for(:action =&gt; 'show', :controller =&gt; 'profiles', :only_path =&gt; false)
     .
     end
  end
  </code></pre>
  
  <p>But it seems that this code is deprecated: <a href="http://apidock.com/rails/ActionController/Base/url_for" rel="nofollow">http://apidock.com/rails/ActionController/Base/url_for</a></p>
  
  <p>I've used this method when the base class is ApplicationController, but I need to use ActionController::Base in this one. I've tried to add 
      include ActionView::Helpers::UrlHelper
  but it doesn't work either. Is there a workaround about this?</p>
  
  <p>I'm running Rails 3.2.3</p>
  
  <p>Thanks</p>