# URL aliasing

**URL:** <https://www.ruby-forum.com/t/url-aliasing/128253>\
**Category:** Rails\
**Created:** [February 6, 2008, 6:23am UTC](https://www.ruby-forum.com/t/url-aliasing/128253 "2008-02-06T06:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naresh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@naresh](https://www.ruby-forum.com/u/naresh)\
**Post date:** [February 6, 2008, 6:23am UTC](https://www.ruby-forum.com/t/url-aliasing/128253/1 "2008-02-06T06:23:07Z")

</div>

Hi all,

I have used url aliasing on my site. say suppose my url is

domain/blog/1 to domain/blog/1/title in this i have succeded to redirect  
the url to a particular blog on its id with blog title, by defining the  
routes

map.blog ‘blog/edit/:id/:title’, :id=\> ‘id’, :controller =\> ‘blog’,  
:action =\> ‘show’

when i edit a particular blog it is giving me this error like

Couldn’t find Service with ID=update

means it is not getting the id for tht blog, so wht should i define in  
controller or in routes so tht i can take id of tht blog with title,  
???//\>???

any help would be appreciated,

Thanks a lot

Naresh Rana
