File: //usr/local/rvm/gems/ruby-2.7.4/doc/actionview-6.1.4.1/ri/ActionView/RecordIdentifier/dom_id-i.ri
U:RDoc::AnyMethod[iI"dom_id:ETI"(ActionView::RecordIdentifier#dom_id;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"rThe DOM id convention is to use the singular form of an object or class with the id following an underscore. ;TI"3If no id is found, prefix with "new_" instead.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"0dom_id(Post.find(45)) # => "post_45"
;TI"1dom_id(Post.new) # => "new_post"
;T:@format0o;
; [I"mIf you need to address multiple instances of the same class in the same view, you can prefix the dom_id:;T@o;; [I"6dom_id(Post.find(45), :edit) # => "edit_post_45"
;TI"4dom_id(Post.new, :custom) # => "custom_post";T;
0:
@fileI")lib/action_view/record_identifier.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(record, prefix = nil);T@FI"RecordIdentifier;TcRDoc::NormalModule00