:url => mugshots_path


I am doing this tutorial 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.

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