
Ruby on Rails
1
Вклад в тег
Rails.application.routes.draw do
constraints subdomain: /.+/ do
get '/(*uri)' => redirect { |params, request| "http://example.com#{request.original_fullpath}" }
end
root 'welcome#index'
end