I have fixed it, undoing the new parameter added to new_model, and using a new method, so it doesn't break code overriding new_model
https://github.com/activescaffold/active_scaffold/issues/727
El lunes, 16 de septiembre de 2024 20:05:38 (CEST), Gloufy escribió:
> Hi Sergio I've got this error since a update activecaffold.
>
> wrong number of arguments (given 1, expected 0)
> def show_search
> @record = new_model(false)
> super
> end
>
>
>
> active_scaffold (9404878966b3)
> lib/active_scaffold/bridges/cancan/cancan_bridge.rb:51:in `new_model'
> active_scaffold (9404878966b3)
> lib/active_scaffold/actions/field_search.rb:15:in `show_search'