However, that's not the case at all.
map.resources :photos, :as => 'images'This allows you to request the "photos" resource using the word "images". IE: http://localhost:3000/images/ would route to the "photos" controller.
On the other hand,
map.resources :photos, :controller => 'images'This allows you to request the "images" resource using the word "photos". IE: http://localhost:3000/photos/ would route to the "images" controller.
Simple? Yes. Subtle? Yes.
0 comments:
Post a Comment