ruby on rails - Active Admin create a button inside a column -
i trying add column contains button, not sure how go this.
panel "tool details" table_for tooling_request.add_tray_to_requests |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
Comments
Post a Comment