# Multiple actions for one route (making pretty URLs hit diffe

**URL:** <https://www.ruby-forum.com/t/multiple-actions-for-one-route-making-pretty-urls-hit-diffe/54470>\
**Category:** Rails\
**Created:** [March 6, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/multiple-actions-for-one-route-making-pretty-urls-hit-diffe/54470 "2006-03-06T15:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 6, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/multiple-actions-for-one-route-making-pretty-urls-hit-diffe/54470/1 "2006-03-06T15:16:05Z")

</div>

Hi all,

I’m trying to make pretty URLs using routes for some of my actions  
across different controllers. For example:

[http://www.example.com/london](http://www.example.com/london) →   
[http://www.example.com/articles/show\_by\_name/london](http://www.example.com/articles/show_by_name/london)

But if the id ‘about’ couldn’t be found, then to search for it as  
another action, this time from the ‘branch’ controller.

[http://www.example.com/london](http://www.example.com/london) →   
[http://www.example.com/branches/show\_by\_name/london](http://www.example.com/branches/show_by_name/london)

And so on, checking through different actions in different controllers,  
until it finds something that matches.

How can I achieve this, preferably without building a specific  
controller/action to handle and forward requests to the appropriate  
pages?

Thanks a lot!

Tom
