Skip to content

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