Flowdock
method

underscore

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: String
underscore() public

The reverse of camelize. Makes an underscored, lowercase form from the expression in the string.

underscore will also change ‘::’ to ‘/’ to convert namespaces to paths.

'ActiveModel'.underscore         # => "active_model"
'ActiveModel::Errors'.underscore # => "active_model/errors"
Show source
Register or log in to add new notes.