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

How to use in the view? #74

Open
viktorsmari opened this issue May 6, 2020 · 1 comment
Open

How to use in the view? #74

viktorsmari opened this issue May 6, 2020 · 1 comment

Comments

@viktorsmari
Copy link

viktorsmari commented May 6, 2020

When using this gem, what is the recommended way to render a number with formatting in the view?

Can we add an example in the README.md?

Would it be something like:

<%= number_to_currency(123456, locale: @user.currency) %>

Or do you need the Money gem methods to do it?

@oliverklee
Copy link
Member

Hi @viktorsmari, unfortunately, I'd need to fiddle around to find out the syntax as we've stopped using this gem after adopting it.

Would you be willing to find out the syntax and provide a PR for adding an example to the README?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants