Hi All
I am currently using the Permalink_fu plugin which correctly creates the following URI:
http://localhost:3000/pages/some-permalink-to-page
I now want to configure my routing so that I can drop the /pages/ part from the URI leaving me with:
http://localhost:3000/some-permalink-to-page
I tried adding the following to the bottom of my config/routes.rb file:
map.connect ':permalink', :controller => 'page', :action => 'view'
but I get the following error, when I try the new URI:
uninitialized constant PageController
Do you have any suggestions? I'm running Rails 2.2.2 and am reluctant to try edge rails just yet.
Many thanks,
Ben...