:url => mugshots_path


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs