November 2008
Beginner
448 pages
12h 25m
English
These methods make it easier for views to identify components referring to Rails objects when building HTML or RJS:
dom_classCreates a value suitable for a class attribute that is the singular
form of the object name.
dom_idCreates a value suitable for an id attribute that is the singular form
of the object name plus _ and
the object’s id value.
partial_pathCreates a value containing
plural/singular form of an object’s
name, like turtles/turtle or
people/person.
Read now
Unlock full access