I have config/routes.rb with warning
DEPRECATION WARNING: Using a dynamic :controller segment in a route is deprecated and will be removed in Rails 5.1.
Don't know how to rewrite to remove the warning. Any document to understand how todo. Or new code Thx.
Rails.application.routes.draw do
post ':controller(/:action(/:id))(.:format)'
get ':controller(/:action(/:id))(.:format)'
get '/logout' => 'sessions#destroy', :as => 'logout'
get '/auth/failure' => 'sessions#failure'
post '/auth/:provider/callback' => 'sessions#create'
resources :sessions
resources :identities
root :to => 'myapp#index'
end