【发布时间】:2023-03-13 08:05:01
【问题描述】:
给定
<% @incidents.each_with_index do |incident,i| %>
我不知道如何在事件和父关联(例如 event.user 或 event.contact)上设置编辑属性
这适用于例如:
best_in_place incident, :notes, type: :input, nil: 'Add Note'
但我不知道如何做 event.customer 来获取 Customer.all 的下拉列表(事件 belongs_to :customer)
我每次尝试都会遇到各种错误。
【问题讨论】:
标签: ruby-on-rails best-in-place inplace-editing