0.0
No commit activity in last 3 years
No release in over 3 years
Adds support in Rails apps for final routes, routes that are drawn after all engines have drawn their own.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 3.2.3
 Project Readme

FinalRoutes¶ ↑

Adds support to Rails for final routes. This project rocks and uses MIT-LICENSE.

FinalRoutes is currently licensed under the MIT free-software license. A copy of the terms is distributed as the file MIT-LICENSE.

WARNING: This gem is slightly evil in its implementation. Use at your own risk. Or better yet, take a peak under the hood and decide for yourself.

Usage¶ ↑

Use final in your routes to create mappings that apply after all host application routes and all engine routes.

MyRailsApp::Application.routes.draw do
  # ... application routes

  final do
    # some catch-all route
    match ':slug' => 'pages#show'
  end
end