我正在尝试添加一个包含按钮的列,但不确定如何解决这个问题。
panel "Tool Details" do
table_for tooling_request.add_tray_to_requests do |t|
t.column("Tray") { |add_tray_to_requests| link_to add_tray_to_requests.tray.name, admin_tray_path(add_tray_to_requests.tray) }
t.column("Number Needed") { |add_tray_to_requests| add_tray_to_requests.number_needed }
t.column("Special Instructions") { |add_tray_to_requests| add_tray_to_requests.special_instructions }
end
end