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

Rails 5.1.x compatibility issues #7

Open
acrolink opened this issue Sep 13, 2017 · 1 comment
Open

Rails 5.1.x compatibility issues #7

acrolink opened this issue Sep 13, 2017 · 1 comment

Comments

@acrolink
Copy link

I have forked the gem and made Rails 5.1.x specific changes (due to deprecation):
acrolink@570645e
and
acrolink@2c08df6

but I am getting this error:
wrong number of arguments (given 2, expected 0..1)

in the line:
<%= simple_form_for @work, :html => { :class => 'form-horizontal' } do |f| %>

Any idea what might be going on here? Thanks.

@VitaliyAdamkov
Copy link

VitaliyAdamkov commented Aug 11, 2020

@acrolink You need to add form_options: keyword argument to token_tag method definition, like it done in Rails 5.
def token_tag token = nil, form_options: {}

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

No branches or pull requests

2 participants