Topic: Temporarily block acces to certain pages
Can anyone suggest a simple way of temporarily blocking access to a set of controllers within my application?
For example, I have a number of controllers in a sub directory foo if I wanted to temporarily divert access from these controllers could I do it using routes.rb?
How can I redirect all attempts to access controllers under foo (i.e. foo/bar) to home?
map.connect 'foo', :controller => 'home'
This works if I try and access http://server.com/foo but not if I try and access http://server.com/foo/bar.
Or this a better way of doing this without playing with routes.rb?
Last edited by mip (2006-11-09 10:44:51)