在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
- 在(Gem :: LoadError)中找不到heroku(> = 0)
- heroku运行db:migrate因rake中止而失败
- 本地postrges工作,但似乎无法推动到RAILS_ENV =生产heroku
- 编写一个多租户Rails 3应用程序,以便在Heroku上进行部署
- 在Heroku上的生产中建立外部数据库连接
- Heroku和@ font-face – 嵌入式字体不会在Heroku上显示
- 如何在heroku上的两个不同的应用程序之间共享工作者?
- Heroku – ActionView :: Template :: Error(PG ::错误:错误:列category_products.desc不存在
- 用点击将SQLite数据库推送到Heroku?