在我的应用程序中,我需要更改删除操作的默认确认消息。我已经更改了索引页面上删除操作的默认确认消息,例如,
index do
column :title
column :start_date
column :start_time
column :end_date
column :end_time
#actions
actions defaults: false do |post|
item "View", admin_content_path(post)
text_node " ".html_safe
item "Edit", edit_admin_content_path(post)
text_node " ".html_safe
item "Delete", admin_content_path(post), method: :delete, :confirm => "All grades, uploads and tracks will be deleted with this content.Are you sure you want to delete this Content?"
end
结尾
这在索引页面上运行良好。我还想更改显示页面上删除操作的默认确认消息。它仍然显示默认消息,例如“您确定要删除它吗?”
以及如何更改activeadmin中批处理操作确认对话框的css?
有人知道吗?谢谢。