Implicit argument passing of super from method defined by define_method() is not supported

前端 未结 2 545
一个人的身影
一个人的身影 2021-02-07 12:38

In \"Agile Web Development with Rails\" (third edition) page 537 - 541 it has \"Custom Form Builders\" code as follows:

  class TaggedBuilder < Actio         


        
2条回答
  •  情话喂你
    2021-02-07 13:12

    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).

提交回复
热议问题