# Filtering routes?

**URL:** <https://www.ruby-forum.com/t/filtering-routes/120807>\
**Category:** Rails\
**Created:** [November 20, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/filtering-routes/120807 "2007-11-20T19:27:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [November 20, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/filtering-routes/120807/1 "2007-11-20T19:27:18Z")

</div>

I have a route like this:

map.tickets\_landing\_page ‘:name-tickets’, :controller =\> “tickets”,  
:action =\> “landing\_page”

I want name to replace all spaces with dashes. So if I do  
tickets\_landing\_page\_path(:name =\> “New York Giants”) it should do  
New-York-Giants. Any ideas how to do this?

Thanks!
