Use a route helper in a model (Rails 3)

Hello,

With Rails 3 is is possible to use a route helper in a model? eg
article_url.

After a comment creation, I want to post it to Twitter from a model
after_create callback and I want to include the article URL in the
tweet.

Thanks :slight_smile:
Florent

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs