使用 link_to rails 确认消息后显示警告消息
Show alert message after confirm message with link_to rails
我想在 link_to 在 Rails 3.2.11 上向 haml 发送确认消息后显示一条警告消息。我的意思是,我会要求确认操作,然后我会显示一条消息(警报)和确认。
我有以下代码:
= link_to([:archive, :admin, campaign], method: :put, confirm: t('are_you_sure_archive'))
非常感谢!
查找"A warning message, with a function attached to the "确认“-按钮...”示例
有一个 gem 用于 sweetalert
我想在 link_to 在 Rails 3.2.11 上向 haml 发送确认消息后显示一条警告消息。我的意思是,我会要求确认操作,然后我会显示一条消息(警报)和确认。
我有以下代码:
= link_to([:archive, :admin, campaign], method: :put, confirm: t('are_you_sure_archive'))
非常感谢!
查找"A warning message, with a function attached to the "确认“-按钮...”示例
有一个 gem 用于 sweetalert