# :url =\> mugshots\_path

**URL:** <https://www.ruby-forum.com/t/url-mugshots-path/143121>\
**Category:** Rails\
**Created:** [July 15, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/url-mugshots-path/143121 "2008-07-15T14:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![torso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/34f0e0/32.png) [@torso](https://www.ruby-forum.com/u/torso)\
**Post date:** [July 15, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/url-mugshots-path/143121/1 "2008-07-15T14:03:00Z")

</div>

Hi

I am doing this tutorial  
[http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu](http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu)  
and I need help for this RESTful router in form :url =\> mugshots\_path

I get error : undefined local variable or method `mugshots\_path’

So I have to added mugshot\_path to routers.rb in config direcotry. But  
I’m not sure, how i do it. If I wanted it to point in some directory.

Thanks for help.

---

<div class="post-metadata">

**Author:** ![torso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/34f0e0/32.png) [@torso](https://www.ruby-forum.com/u/torso)\
**Post date:** [July 15, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/url-mugshots-path/143121/2 "2008-07-15T14:59:17Z")

</div>

If you’re not using namespaces or other “enhanced” features,  
a simple line:

map.resources :mugshots

in your routes.rb file should be all you need
