In Rails, what’s the difference between to_label and to_s? Especially in the context of displaying model info in views. I know that if you define to_s you don’t have to explicitly call Model.to_s in views. What’s the advantage of using to_label then?
In Rails, what’s the difference between to_label and to_s ? Especially in the context
Share
to_label has been deprecated, you can’t find it from the Rails3 source