How do I remove the registrations DELETE route?

801 views
Skip to first unread message

tyen

unread,
Nov 14, 2010, 11:23:10 PM11/14/10
to Devise
I want to remove the route to {:action => "destroy", :controller =>
"devise/registrations"} that is added in by devise_for. I looked at
the :skip option but it doesn't remove individual actions. Any ideas?
Thanks.

José Valim

unread,
Nov 15, 2010, 3:50:19 AM11/15/10
to Devise
There is no way to remove routes individually. Or you use :skip to
remove all and draw the ones you need manually or you overwrite this
routes by defining a route to the same path first in your config/
routes.rb
Reply all
Reply to author
Forward
0 new messages