i used rails 1.2.6 + restful_authentication plugin
base = '/v1'
map.resources :users, :path_prefix => base
map.resources :users do |users|
users.resources :orders, :path_prefix => '/v1/users/:id'
map.signup '/signup', :controller => 'users', :action => 'new'
map.login '/login', :controller => 'session', :action => 'new'
map.logout '/logout', :controller => 'session', :action => 'destroy'
this is my routes.rb
when i first started my webrick, i tried to access localhost:3001/v1/
i was prompted for my username password. so it worked.
however when i type in localhost:3001/logout
and when i try localhost:3001/v1/users/username1/orders, it failed to
You have been logged out.
<New order link here>
exposing data when I have already logged out.
May I ask what is wrong here?