In \"Agile Web Development with Rails\" (third edition) page 537 - 541 it has \"Custom Form Builders\" code as follows:
class TaggedBuilder < Actio
I encountered with this problem in a define_method without arguments
define_method :"#{info_type}_info" do
info = super
.......
end
And still found this problem. I had to explicit put the parenthesis:
define_method :"#{info_type}_info" do
info = super()
.......
end
The super
above passed all parameters (see this recent question).
As the error message states, you must here "specify all arguments explicitly". Replace super
with super(label, *args)
.