# Use a route helper in a model (Rails 3)

**URL:** <https://www.ruby-forum.com/t/use-a-route-helper-in-a-model-rails-3/191437>\
**Category:** Rails\
**Created:** [July 12, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/use-a-route-helper-in-a-model-rails-3/191437 "2010-07-12T18:16:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florent2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@Florent2](https://www.ruby-forum.com/u/Florent2)\
**Post date:** [July 12, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/use-a-route-helper-in-a-model-rails-3/191437/1 "2010-07-12T18:16:35Z")

</div>

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 🙂  
Florent
