There is such a routing:
resources :controller, olny: :index, path: 'dir' do get '*path' => 'controller#index', on: :collection, format: false end In *path gets a relative path in a specific directory, which is on the fs ext4. If there is a question mark in the directory name, then everything that comes before it is in the path , and the rest is in params . I would like something like this:
get '*path' => 'controller#index', on: :collection, format: false, params: false I know that I have to dig in the direction of constraints: but I don’t think how to use them.