2

当用户尝试注册时,我收到此错误。使用 Rails Composer 后,我没有更改任何文件,但仍然出现错误。

<div class="authform">
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :role => 'form',
        :class => 'payola-onestep-subscription-form',
        'data-payola-base-path' => payola_path,
        'data-payola-plan-type' => resource.plan.plan_class,
        'data-payola-plan-id' => resource.plan.id}) do |f| %>
    <h3>Sign up</h3>
    <div>
      <br />
      <span id="error_explanation" class="payola-payment-error"></span>
4

1 回答 1

0

利用

resource.class

代替

resource.plan.plan_class
于 2015-06-25T20:37:47.587 回答