File: //usr/local/rvm/gems/default/doc/actionpack-6.1.4.1/ri/ActionDispatch/Routing/UrlFor/route_for-i.ri
U:RDoc::AnyMethod[iI"route_for:ETI".ActionDispatch::Routing::UrlFor#route_for;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"2Allows calling direct or regular named route.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"resources :buckets
;TI"
;TI"'direct :recordable do |recording|
;TI", route_for(:bucket, recording.bucket)
;TI" end
;TI"
;TI"(direct :threadable do |threadable|
;TI"1 route_for(:recordable, threadable.parent)
;TI" end
;T:@format0o;
; [I":This maintains the context of the original caller on ;TI"/whether to return a path or full URL, e.g:;T@o;; [I"4threadable_path(threadable) # => "/buckets/1"
;TI"Ethreadable_url(threadable) # => "http://example.com/buckets/1";T;
0:
@fileI"+lib/action_dispatch/routing/url_for.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(name, *args);T@"FI"UrlFor;TcRDoc::NormalModule00