You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also achieve a similar result by overriding the paths in config/routes.rb. Here we take advantage of the fact that the routes.rb file is read from top to bottom, and will use the first matching route. Below, I am routing to the Rack application contained in the lambda.
You can use this method to disable any other routes in Devise.
One drawback of this method is that the original route will still show up in bin/rails routes but if this does not bother you, then I think this is a simpler way to disable routes.