File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activeresource-6.0.0/ri/ActiveResource/Base/element_path-c.ri
U:RDoc::AnyMethod[iI"element_path:ETI"'ActiveResource::Base::element_path;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"hGets the element path for the given ID in +id+. If the +query_options+ parameter is omitted, Rails ;TI")will split from the \prefix options.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli : textI"Options;To;
; [I"r+prefix_options+ - A \hash to add a \prefix to the request for nested URLs (e.g., <tt>:account_id => 19</tt> ;TI"Bwould yield a URL like <tt>/accounts/19/purchases.json</tt>).;T@o;
; [I"P+query_options+ - A \hash to add items to the query string for the request.;T@S;;
i ;I"
Examples;To:RDoc::Markup::Verbatim; [I"Post.element_path(1)
;TI"# => /posts/1.json
;TI"
;TI"*class Comment < ActiveResource::Base
;TI"< self.site = "https://37s.sunrise.com/posts/:post_id"
;TI" end
;TI"
;TI",Comment.element_path(1, :post_id => 5)
;TI"## => /posts/5/comments/1.json
;TI"
;TI":Comment.element_path(1, :post_id => 5, :active => 1)
;TI",# => /posts/5/comments/1.json?active=1
;TI"
;TI">Comment.element_path(1, {:post_id => 5}, {:active => 1})
;TI"+# => /posts/5/comments/1.json?active=1;T:@format0:
@fileI" lib/active_resource/base.rb;T:0@omit_headings_from_table_of_contents_below000[ I"3(id, prefix_options = {}, query_options = nil);T@,FI" Base;TcRDoc::NormalClass00