# Using url\_for and expire\_page in console and runner (a howto)

**URL:** <https://www.ruby-forum.com/t/using-url-for-and-expire-page-in-console-and-runner-a-howto/122948>\
**Category:** Rails\
**Created:** [December 12, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/using-url-for-and-expire-page-in-console-and-runner-a-howto/122948 "2007-12-12T22:51:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phallstrom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Post date:** [December 12, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/using-url-for-and-expire-page-in-console-and-runner-a-howto/122948/1 "2007-12-12T22:51:36Z")

</div>

Hi all -

I recently had the need to use url\_for and expire\_page via  
script/runner.  
After some googling figured it out and thought I’d write it up so the  
next  
person doesn’t have to google quite so much.

[http://www.pjkh.com/articles/rails-console-runner-url-for-expire-page.html](http://www.pjkh.com/articles/rails-console-runner-url-for-expire-page.html)

Hope it helps someone 🙂

-philip
