RecordIdentificationHelper

These methods make it easier for views to identify components referring to Rails objects when building HTML or RJS:

dom_class

Creates a value suitable for a class attribute that is the singular form of the object name.

dom_id

Creates a value suitable for an id attribute that is the singular form of the object name plus _ and the object’s id value.

partial_path

Creates a value containing plural/singular form of an object’s name, like turtles/turtle or people/person.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset