Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/carpentry/rails/routes.rb
Instance Method Summary collapse
Instance Method Details
#mount_carpentry_at(mount_location) ⇒ Object
3 4 5 6 7 8 |
# 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 |