# How Can I Initialize Routes Outside of Rails Boot?

**URL:** <https://www.ruby-forum.com/t/how-can-i-initialize-routes-outside-of-rails-boot/117091>\
**Category:** Rails\
**Created:** [October 12, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/how-can-i-initialize-routes-outside-of-rails-boot/117091 "2007-10-12T21:16:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbellware](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sbellware](https://www.ruby-forum.com/u/sbellware)\
**Post date:** [October 12, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/how-can-i-initialize-routes-outside-of-rails-boot/117091/1 "2007-10-12T21:16:13Z")

</div>

I’d like to use my application’s named routes in Watir tests. The  
Watir tests are in the source tree with the Rails app.

Is there a way to initialize the routes so that I can use them in the  
Watir test code?

Thanks,  
Scott
