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

Fix ArgumentError when using rails i18n t helper #187

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

prognostikos
Copy link

Before this fix calls in presenters to t() that included interpolation variables would fail with the exception below on ruby 3.1.3p185

  ActionView::Template::Error:
      wrong number of arguments (given 2, expected 1)

In the process of upgrading our app from ruby 2.7.7 to 3.1.3 we ran into this issue. I'm not sure how backwards-compatible the fix is though.

Before this fix calls in presenters to `t()` that included interpolation
variables would fail with the exception below on ruby 3.1.3p185

```
  ActionView::Template::Error:
      wrong number of arguments (given 2, expected 1)
 ```
@zenspongebob
Copy link

Hi @prognostikos and Thank you for your contribution!
Unfortunately, I am not able to replicate the issue you are seeing. Can you provide an example? how are you using the t() method? Please include snippets

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

Successfully merging this pull request may close these issues.

2 participants