1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Nick Sutterer 2011-05-12 09:31:36 +02:00
parent a117ac431a
commit e3b3f416b5
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
# 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

View file

@ -1,3 +1,9 @@
# 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