Active Admin在列中创建一个按钮

时间:2014-03-10 17:52:14

标签: ruby-on-rails activeadmin

我正在尝试添加一个包含按钮的列,但不确定如何解决这个问题。

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

0 个答案:

没有答案