-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Ruby 3.0.0, Rails 6.1.3 - wrong number of arguments (given 1, expected 0) #3342
Comments
As far as I can tell this is fixed on master, but not released yet. In the meantime, I have my |
@toddsiegel yes and no. |
@RocKhalil I could not reproduce that, how does the custom action look like? |
@mshibuya sorry for the late reply, here's an example: action:
And here's my view:
Of course, I've changed the method names, etc..
are breaking. If you remove the named param and use |
|
@mshibuya how is the issue in my code ? :-p |
Please forget about it, I found something suspicious. |
I've just pushed the fix to the master, please try and see if it works. |
Yup, works like a charm ! |
ArgumentError in RailsAdmin::MainController#new
wrong number of arguments (given 1, expected 0)
https://rubyreferences.github.io/rubychanges/3.0.html#keyword-arguments-are-now-fully-separated-from-positional-arguments
Problem is probably connected with new way of declaring keyword arguments.
The text was updated successfully, but these errors were encountered: