Mackenzie Child 是一名设计师、工程师、也是一名 Youtuber 兼 Blogger,白天在 Precision Nutrition 担任前端工程师,晚上则一边自修程式设计、一边荧幕录影(Screenca…
分类:ruby-on-rails
Service Object 整理和小结
TL;DR 这篇文章整理了 Service Object 的一套 Convention,用 PORO 结合 Rails 的功能完成了一个例子,并介绍了一些其他思路。 Why Service Object (Again)?…
Rails利用Yaml在不同的环境与数据库之间传递数据
Sometimes, you cannot just seed your Rails database. This could be due to the complexity of the data itself, w…
Rails が production 環境で真っ白、SECRET_KEY_BASE 設定忘れが原因でした
production 環境で、なぜか Rails アプリケーションの画面が真っ白になってしまった。 — 環境 — Rails 4.1 Unicorn エラーログを確認 unicorn のエラーログを確認しますと… $ t…
Ruby Shanghai 2014年终聚会总结
准备 本次活动获得了薄荷的大力支持,在他们新的高大上的办公室。同时要一并感谢本次活动的多家赞助单位 微客来在紧急关头支持了投影设备,解决了最后的难题。 我提前来到会场,和GitCafe的Kumalee一起清点了礼品,我们…
Failed to build gem native extension
Unable to install gem – solution: sudo apt-get install ruby-dev or sudo apt-get install ruby1.9.1-dev
Github 是如何用 Github 撰写 Github 文档的
原文:https://github.com/blog/1939-…译者:@公子 一份好的文档能够帮助人们理解,使用以及贡献代码到你的项目中,但这只是一个生成文档的方程式的一半。生成文档的底层系统使得人们,无论…
Building a RESTful API in a Rails Application
1 Introduction There comes a time in the development lifecycle of most web applications when a third-party int…
Rails 4 + angularjs CORS - 跨域实现的办法
在两台服务器之间实现angularjs app与rails的REST api通讯,一般会遇到CORS警告的报错。 CORS Cross-origin resource sharing 其实是一种浏览器技术,定义了服务器资…
关于Rails性能调整
For something that is touted as being an “easy” to use framework, Rails is a pretty complex beast. Over the ye…
关于rails性能的那些小事儿
1 Introduction I often hear that Rails is slow. This has become a common theme among the Ruby and Rails commun…
《Ruby on Rails教程》学习笔记
本文是我在阅读 Ruby on Rails 教程的简体中文版时所做的摘录,以及学习时寻找的补充知识。补充知识主要来自于 Ruby on Rails 實戰聖經。 Asset Pipeline 在最新版 Rails 中,静态…