Rails 5.0.0.beta4 introduced a deprecation warning on routes containing dynamic :action and :controller segments:
DEPRECATION WARNING: Using a dynamic :action s
Is not the same case as you, but I did this:
class PagesController < ApplicationController def index render params[:path] end end
Routes:
get ':path', to: 'pages#index'
I suppose if I want a nested path I will use *:
*
get '*path', to: 'pages#index'