Skip to content

Instantly share code, notes, and snippets.

@sergio1990
Created October 9, 2016 12:50
Show Gist options
  • Save sergio1990/b811efb0846c61429b0fbe7a1b1165b1 to your computer and use it in GitHub Desktop.
Save sergio1990/b811efb0846c61429b0fbe7a1b1165b1 to your computer and use it in GitHub Desktop.
Map your entire Rails application inside given URL prefix
require ::File.expand_path('../config/environment', __FILE__)
map 'YOUR_PREFIX_HERE' do
run Rails.application
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment