1

Formtastic で ActiveAdmin を使用してIce_Cube gemのselect_recurringフォーム ヘルパーを使用すると、エラーが発生します。unable to find input class for select_recurring

  form do |f|
    #Debugging
    f.semantic_errors *f.object.errors.keys

    f.inputs do
      f.input :title
      f.input :description,  :hint => "Full description for the event"
      f.input :short_description, :hint => "Shot description for the event that will be displayed as a thumbnail"
      f.input :published
      f.input :event_date
      f.input :recurring_rule, :as => :select_recurring
    end

    f.actions
  end

直接 (以下) にアクセスすると、定期的なスケジュール要素に対して機能しますが、残りのすべてのフォーム要素が壊れf.inputます。

f.select_recurring :recurring_schedule

select_recurringActiveAdminに組み込むにはどうすればよいですか?

4

1 に答える 1

1

私のために働いた(AA 1.0.0.pre1)

form do |f|
  f.inputs do
  #...
    li do
      f.label :recurring_rule_column
      f.select_recurring :recurring_rule_column, nil, :allow_blank => true
    end
  #...
  end
  f.submit
end
于 2015-07-10T15:50:21.470 に答える