Currently, route exceptions are still displayed when I run rake routes .
rake routes
resources :userhome, :except => [:new, :create, :edit, :update, :show, :destroy] do collection do post :create_invitation end member do get :edit_profile_picture post :update_profile_picture end end
How can I make exceptions?
An easier way to eliminate unnecessary routes is to specify the option :only
:only
resources :userhome, :only => [:index]
instead
resources :userhome, :except => [:new, :create, :edit, :update, :show, :destroy]