Flowdock
method

underscore

Importance_1
v3.0.9 - Show latest stable - 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.

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