# What is the best way to test subdomain routes in Rails3 development

**URL:** <https://www.ruby-forum.com/t/what-is-the-best-way-to-test-subdomain-routes-in-rails3-development/187148>\
**Category:** Rails\
**Created:** [April 18, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-test-subdomain-routes-in-rails3-development/187148 "2010-04-18T15:34:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [April 18, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-test-subdomain-routes-in-rails3-development/187148/1 "2010-04-18T15:34:40Z")

</div>

Hi all,

In Rails3 we can define a constraint for subdomain as such:  
constraints(:subdomain =\> “support”) do  
…  
end

But if we are using development web server like webrick, how would we  
be able to test it? Anybody has got any hint or insights on this?

Your help is kindly appreciated.

Kind regards,  
Joshua

–  
[http://twitter.com/scrum8](http://twitter.com/scrum8)
