在Heroku上运行Ruby / Rails应用程序的浏览器没有“销毁”确认

有趣的问题……我已经创建了一个小型的Ruby on Rails应用程序,可以在localhost:3000上使用SQLite,但是当我把它放在Heroku上时,我放弃了使用脚手架“Destroy”链接销毁记录的能力。

不同的行为是当我在localHost:3000上运行时,我得到一个如下所示的浏览器对话框:

在此处输入图像描述

当我在heroku上运行时,我没有得到对话框,“Destroy”也没有。 我在Safari和Firefox下运行具有相同的行为。

有什么想法吗?

预编译资产有帮助吗?

在config / environments / production.rb中设置

config.assets.compile = true 

在当地运行

 RAILS_ENV=production bundle exec rake assets:precompile git add . git commit -am 'precompiled assets' git push heroku master