From Rail 3, I'm used to doing this:
User.model_name.human count: 2 # "Users"
Does this not work in Rails 4?
[1] base » User.model_name.human count: 2
=> "User"
While a plural simple line works:
[2] base » "User".pluralize
=> "Users"
Any idea what the problem is here?
source
share