NoMethodError for underscore
- by siulamvictor
I want to convert the string
"Full Time"
to
"full_time"
When I using "Full Time".underscore in irb, it prompt a error
NoMethodError: undefined method `underscore' for "Full Time":String
How can I fix it? Or is there any other way for me to get the above underscored result?