File: //usr/local/rvm/gems/ruby-2.5.9/doc/actionpack-6.1.4.1/ri/ActionController/UrlFor/cdesc-UrlFor.ri
U:RDoc::NormalModule[iI"UrlFor:ETI"ActionController::UrlFor;T0o:RDoc::Markup::Document:@parts[o;;[
o:RDoc::Markup::Paragraph;[I"cIncludes +url_for+ into the host class. The class has to provide a +RouteSet+ by implementing ;TI"Ithe <tt>_routes</tt> method. Otherwise, an exception will be raised.;To:RDoc::Markup::BlankLine o; ;[I"gIn addition to <tt>AbstractController::UrlFor</tt>, this module accesses the HTTP layer to define ;TI"YURL options like the +host+. In order to do so, this module requires the host class ;TI"Hto implement +env+ which needs to be Rack-compatible and +request+ ;TI"Kwhich is either an instance of +ActionDispatch::Request+ or an object ;TI"Bthat responds to the +host+, +optional_port+, +protocol+ and ;TI")+symbolized_path_parameter+ methods.;T@o:RDoc::Markup::Verbatim;[I"class RootUrl
;TI"( include ActionController::UrlFor
;TI"4 include Rails.application.routes.url_helpers
;TI"
;TI"0 delegate :env, :request, to: :controller
;TI"
;TI"" def initialize(controller)
;TI"" @controller = controller
;TI"E @url = root_path # named route from the application.
;TI" end
;TI"end;T:@format0:
@fileI"+lib/action_controller/metal/url_for.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [ [[I"AbstractController::UrlFor;To;;[ ;
@';0I"+lib/action_controller/metal/url_for.rb;T[[I"
class;T[[:public[ [:protected[ [:private[ [I"
instance;T[[;[[I"url_options;T@/[;[ [;[ [[I"ActiveSupport::Concern;To;;[ ;
@';0@/[U:RDoc::Context::Section[i 0o;;[ ;
0;0[@'I"ActionController;TcRDoc::NormalModule