Skip to content

Ruby 3.0.0, Rails 6.1.3 - wrong number of arguments (given 1, expected 0) #3342

@lfuszara1

Description

@lfuszara1

ArgumentError in RailsAdmin::MainController#new
wrong number of arguments (given 1, expected 0)

    def save(**) # :nodoc:
      SuppressorRegistry.suppressed[self.class.name] ? true : super
    end

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.

def old_style(name, options = {})
end

def new_style(name, **options)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions