You are here: Browse Railsplugins Active Record Dom Methods
Adds the method dom_id to all active record objects, and the class itself. Let’s say that we have a model called ‘Employee’, then:
Employee.dom_id
Yields the string “employee-0” and
Employee.find(1).dom_id
Yields the string “employee-1”, this gives unique dom_id’s for each object. To extend this further simply concatinate another string.
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly