I have open rails console and want to use pluralize method but i am getting error as NoMethodError: undefined method
pluralize' for main:Object`
pluralize(1, 'person')
i can see the documentation for this method here http://www.rubydoc.info/docs/rails/4.1.7/ActionView/Helpers/TextHelper#pluralize-instance_method but i don't know how to use this documentation. i have tried below code but it didn't work
ActionView::Helpers::TextHelper.new.puralize(1, 'person')
ActionView::Helpers.new.pluralize(1 , 'person')
Please help
Thanks,