Padrino::Routing

Module: Padrino::Routing

Overview

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.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: BlockArityError, Parent, UnrecognizedException

Constant Summary

CONTENT_TYPE_ALIASES =
{ :htm => :html }
ROUTE_PRIORITY =
{:high => 0, :normal => 1, :low => 2}

Class Method Summary

Class Method Details

.registered(app) ⇒ Object Also known as: included

Main class that register this extension.

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Routing

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部