class ActionDispatch::Routing::Mapper
Public Instance Methods
Source
# File lib/carpentry/rails/routes.rb, line 3 def mount_carpentry_at(mount_location) scope mount_location do root to: "carpentry/prototypes#serve", file_path: "index", as: "carpentry_root" match "/*file_path" => "carpentry/prototypes#serve", via: :get end end