title: How to use routing helpers in a model with Rails 3?
body: <p>In a model callback I make an API call and need to give the API some URLs. Those URLs would be easily generated by a routing helper.</p>
  
  <p>The solution given in this <a href="https://stackoverflow.com/questions/341143/can-rails-routing-helpers-i-e-mymodel-pathmodel-be-used-in-models" title="this answer">answer</a>
  does not work anymore in Rails 3.</p>
  
  <p>Any solution? Thanks :)</p>