method

dom_target

dom_target(*objects)
public

The DOM target convention is to concatenate any number of parameters into a string. Records are passed through dom_id, while string and symbols are retained.

dom_target(Post.find(45))                  # => "post_45"
dom_target(Post.find(45), :edit)           # => "post_45_edit"
dom_target(Post.find(45), :edit, :special) # => "post_45_edit_special"
dom_target(Post.find(45), Comment.find(1)) # => "post_45_comment_1"