How to use routing helpers in a model with Rails 3?

Viewed 10525

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.

The solution given in this answer does not work anymore in Rails 3.

Any solution? Thanks :)

2 Answers
Related