Padrino provides advanced routing definition support to make routes and url generation much easier. This routing system supports named route aliases and easy access to url paths. The benefits of this is that instead of having to hard-code route urls into every area of your application, now we can just define the urls in a single spot and then attach an alias which can be used to refer to the url throughout the application.
Modules: ClassMethods, InstanceMethods Classes: BlockArityError, Parent, UnrecognizedException
Defines common content-type alias mappings.
{ :htm => :html }
Defines the available route priorities supporting route deferrals.
{:high => 0, :normal => 1, :low => 2}
.registered(app) ⇒ Object (also: included)
Main class that register this extension. Main class that register this extension.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Routing