Skip to content

Conversation

andreaslillebo
Copy link

Using this gem with Rails 6 results in the following error:

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

This is because in Rails 6, the ActionView template handler for ERB now takes 2 arguments, instead of just 1.

The change was introduced here: rails/rails#35119.

Starting with Rails 6, the ActionView template handler for ERB now takes 2 arguments, instead of just 1.
@jacobsimeon
Copy link
Owner

Awesome! I have to admit that this project has been neglected for a while but this looks great.

@kobusjoubert
Copy link

Hi @jacobsimeon, thanks for this gem, finding it quite clean and useful. Any chance for this pull request to be merged? I had the same issue and just found this pull request which fixes it in Rails 7 as well 🤩

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.

3 participants