Currently the route exceptions are still showing up when I run 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 the exceptions work?
A simpler way to eliminate unneeded routes is by specifying the :only
option
resources :userhome, :only => [:index]
instead of
resources :userhome, :except => [:new, :create, :edit, :update, :show, :destroy]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With