:only option in route 2.2.2


   I have my application rails version 2.2.2 And this thing

map.resources :users, :only => [:index] do |u|
u.resources :categories

  when I tried this in 2.3.2 rails I get what I required Means it only
cretes user index and then all other routes for categories ..But when I
tried it on 2.2.2 version it only created index for both user and
categories Could you please suggest how I can solve this?

Thanks in advance