aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/url_for.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-05-14 11:15:43 +0200
committerXavier Noria <fxn@hashref.com>2011-05-14 11:15:43 +0200
commite5524d538c0d0f39d655a78fc45d2122c0ff2f2a (patch)
treec77f723799f123f43c5731880db82711f1851f72 /actionpack/lib/action_controller/metal/url_for.rb
parent47003f8cdf7afbfa1d78939f17d8b49c9c4348f7 (diff)
downloadrails-e5524d538c0d0f39d655a78fc45d2122c0ff2f2a.tar.gz
rails-e5524d538c0d0f39d655a78fc45d2122c0ff2f2a.tar.bz2
rails-e5524d538c0d0f39d655a78fc45d2122c0ff2f2a.zip
minor edits after going through what's new in docrails
Diffstat (limited to 'actionpack/lib/action_controller/metal/url_for.rb')
-rw-r--r--actionpack/lib/action_controller/metal/url_for.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/url_for.rb b/actionpack/lib/action_controller/metal/url_for.rb
index a185d799bf..08132b1900 100644
--- a/actionpack/lib/action_controller/metal/url_for.rb
+++ b/actionpack/lib/action_controller/metal/url_for.rb
@@ -1,21 +1,24 @@
-# 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.
+# Includes +url_for+ into the host class. The class has to provide a +RouteSet+ by implementing
+# the <tt>_routes</tt> method. Otherwise, an exception will be raised.
#
-# In addition to AbstractController::UrlFor, this module accesses the HTTP layer to define
+# In addition to <tt>AbstractController::UrlFor</tt>, 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 and #request, which need to be a Rack-compatible.
+# to implement +env+ and +request+, which need to be a Rack-compatible.
#
# Example:
#
# class RootUrl
# include ActionController::UrlFor
# include Rails.application.routes.url_helpers
+#
# delegate :env, :request, :to => :controller
#
# def initialize(controller)
# @controller = controller
# @url = root_path # named route from the application.
# end
+# end
+# =>
module ActionController
module UrlFor
extend ActiveSupport::Concern