More routes.rb questions!

hi, if i did this:

map.details ‘food/bbq/:id’ :action => ‘foodDetails’

that is passing only 1 parameter

whereas

map.details ‘:category/:type/:id’ :action => ‘foodDetails’

is passing in 3 parameters correct?

now to minimize processing, i should limit the amount of parameters
passed in the url. therefore, do i just brute force my urls by writing
each one out like this?

map.bbqdetails ‘food/bbq/:id’ :action => ‘bbqdetails’

map.grilldetails ‘food/grilled/:id’ :action => ‘grilldetails’

map.italiandetails ‘food/italian/:id’ :action => ‘grilldetails’

thanks

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