代码之家  ›  专栏  ›  技术社区  ›  Tom Connolly

有人能告诉我这个Rails调试消息是什么意思吗?我想解决这个问题

  •  0
  • Tom Connolly  · 技术社区  · 6 年前

    我的所有页面上都有ruby调试器,但我从来没有理解错误消息。有人能带我穿过这个吗?我想我知道什么是无关紧要的散列(key可以是sym或str),但我不知道它为什么重要。最后一句,允许的:假,吓到我了。这与强参数有关吗?是不允许的“创建”动作吗?

    --- !ruby/object:ActionController::Parameters
       parameters: 
       !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      utf8: "✓"
      authenticity_token: 
    
     nlXTh3Ml5zzRAF9gPFc5KXzAbCoqXXyduq (shortened) ==
     stripeToken: tok_1Dv(shortened)X
     user: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
       card_brand: Visa
       card_exp_month: '12'
       card_exp_year: '2021'
       card_last4: '4242'
     controller: pledge_charges
     action: create
      permitted: false
    
    0 回复  |  直到 6 年前