标题栏中的@应该不起作用吧,帮你重新@下。 @huacnlee
只应用,搬运个,希望有帮助。 http://tools.ietf.org/html/rfc6749
不是 Form class 啊,直接使用<%= button_to 'Add to Cart', line_items_path(product_id: product),class: "btn btn-xs btn-success" %>
就好
目前仅有一位参赛者?
放了一把 HHKB,然后就没钱买书了。
同样在纠结这件事情,其实事实应该是现在已经很少有人用 TextMate 了
** [out :: 162.243.xx.187] You are trying to install in deployment mode after changing
** [out :: 162.243.xx.187] your Gemfile. Run `bundle install` elsewhere and add the
** [out :: 162.243.xx.187] updated Gemfile.lock to version control.
** [out :: 162.243.xx.187]
** [out :: 162.243.xx.187] You have added to the Gemfile:
** [out :: 162.243.xx.187] * therubyracer
** [out :: 162.243.xx.187] * rvm-capistrano
这段已经提示你怎么做了吧,照着做应该能解决问题。
我的解决方法是将服务器环境从 rvm 换到 rbenv,然后问题就没有了……
如果是 Mac 安装的话,直接用 Homebrew 就好
太远了……
哈哈哈哈……
#5 楼 @zgm 把官方文档看一遍吧。 http://www.capistranorb.com/
#2 楼 @cassiuschen 额,没用过 puma,有没有看看 log 是不是由错误信息?建议核对下你的 nginx 配置文件,参考 https://github.com/puma/puma/blob/master/docs/nginx.md 还有,
用端口访问一点问题没有
是指你用 puma 跑,然后通过端口访问而不走 nginx?
你用的是 capistrano v3 吧,v3 支持多种环境的部署,默认提供了 production 和 staging 两个环境,所以执行命令的时候需要之名部署的的目标环境。
#4 楼 @jxs471494539 如果 PDF 预览的话,Chrome 以及 Safari 好像都可以直接在浏览器里面打开 PDF 吧。或者长时下 PDF.js,不知道这个靠谱不?
如果是生成 PDF 的话,建议使用 http://prawn.majesticseacreature.com 。至于打印,直接调用 PDF 的打印就好了吧。