rails route a path as an argument
how to have 'something/like/this' route to any controller action with the whole 'something/like/this' as a string stored in params[:path]?

I tried

match ':path' => 'posts#index'

but clearly doesn't work.
rails route a path as an argument
===

how to have 'something/like/this' route to any controller action with the whole 'something/like/this' as a string stored in params[:path]?

I tried

match ':path' => 'posts#index'

but clearly doesn't work.