提交 e3b3f416 编写于 作者: N Nick Sutterer

added docs for AbC::UrlFor and AC::UrlFor.

上级 a117ac43
# Includes #url_for into the host class (e.g. an abstract controller or mailer). The class
# has to provide a RouteSet by implementing the #_routes methods. Otherwise, an exception
# will be raised.
#
# Note that this module is completely decoupled from HTTP - the only requirement is a valid
# #_routes implementation.
module AbstractController
module UrlFor
extend ActiveSupport::Concern
......
# Includes #url_for into the host class. The class has to provide a RouteSet by implementing
# the #_routes methods. Otherwise, an exception will be raised.
#
# In addition to AbstractController::UrlFor, this module accesses the HTTP layer to define
# url options like the +host+. In order to do so, this module requires the host class
# to implement #env, which needs to be a Rack-compatible environment hash.
module ActionController
module UrlFor
extend ActiveSupport::Concern
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册