Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pluralize method to component #85

Closed
catmando opened this issue Dec 11, 2018 · 1 comment
Closed

add pluralize method to component #85

catmando opened this issue Dec 11, 2018 · 1 comment
Labels
enhancement New feature or request ready-to-release Internal Use Only: Has been fixed, specs passing and pushed to edge branch
Milestone

Comments

@catmando
Copy link
Contributor

catmando commented Dec 11, 2018

pluralize is already available as part of ActiveSupport, but the equivalent text helper is not available.

I.e. "#{pluralize(Todo.active.count, 'item')} left"

generates either 1 item left or 2 items left etc...

@catmando catmando added this to the alpha1.3 milestone Dec 11, 2018
@catmando
Copy link
Contributor Author

closed. see hyper-component/spec/client_features/helpers_spec.rb:4 for example

@catmando catmando added enhancement New feature or request ready-to-release Internal Use Only: Has been fixed, specs passing and pushed to edge branch labels Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready-to-release Internal Use Only: Has been fixed, specs passing and pushed to edge branch
Projects
None yet
Development

No branches or pull requests

1 participant