O'Reilly logo

Learning Rails: Live Edition by Edd Dumbill, Simon St. Laurent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required