该不该用 devise 没有一个共识 https://ruby-china.org/topics/15738
在 ruby 里面要把支付宝公钥加上换行,每行长度参考自己的公钥。
Alipay::Client
现在接入就用新的了,还有沙盒环境。楼主密钥已泄漏,记得换一个。
Alipay::Mobile::Service 是老版接口,不是我开发的也无法调试,建议用 openapi 分支搭配新接口。
这叹号让我不想回复。
用 openapi 分支了吗?贴代码
用亚马逊啊。
通常 Model 和 Table 一一对应。
Model = 数据(存于 Table)+ 逻辑
见你说到前进后退,也许有影响,turbolinks 的加载事件跟原生不一样。不是很熟的话,去掉 turbolinks。
你工作不饱和啊。
引入了 yarn,可以通过 assets pipeline 编译。
那又如何?
请楼主解决 10 个新手提问之后再谈感想。
ujs 不支持传文件
往上级报告,上级决定,留文字记录,不处理以后也可以甩锅。
这就不 DIY 了。
依赖改了依赖的测试也改了,mock 没改怎么办?测试代码也是代码,也会有 bug。
Redmine 至少是个开源项目,资料比较多,如果是内部项目…
我没有全盘否定 mock,我会用在不方便测的地方,比如第三方服务调用。
Dependency injection is not a virtue http://david.heinemeierhansson.com/2012/dependency-injection-is-not-a-virtue.html
用 mock 测试不执行数据库操作,真的能确认应用没有问题么?
Multi-stage builds 也许能解决这个问题 https://blog.docker.com/2017/06/announcing-docker-17-06-community-edition-ce/
构建用大 image,生产用精简 image。
云平台自己的备份服务
《Ruby 元编程》讲得很清楚了啊。
If you only have secret_token set, your cookies will be signed, but not encrypted. This means a user cannot alter their user_id without knowing your app's secret key, but can easily read their user_id. This was the default for Rails 3 apps.
If you have secret_key_base set, your cookies will be encrypted. This goes a step further than signed cookies in that encrypted cookies cannot be altered or read by users. This is the default starting in Rails 4.
http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
Rails 现在的 cookie store 是加密的,可以放敏感信息,主要限制还是体积。