1 3690  36.9037%   git
 2  715   7.15072%   git-new-branch
 3  516   5.16052%   gc
 4  507   5.07051%   cd
 5  271   2.71027%   rails
 6  210   2.10021%   rm
 7  190   1.90019%   j
 8  185   1.85019%   vim
 9  177   1.77018%   rake
10  171   1.71017%   sudo
11  152   1.52015%   ionic
12  139   1.39014%   gem
13  139   1.39014%   brew
14  128   1.28013%   cap
15  122   1.22012%   bundle
16  108   1.08011%   ping
17  83    0.830083%  rvm
18  75    0.750075%  heroku
19  72    0.720072%  ssh
20  70    0.70007%   curl
你的 Gemfile 的源都会背要求设置为
"背" -> "被"
alias open-on-server='python -m SimpleHTTPServer'
来个 python 版本
#27 楼 @xiaoniuniu 没有录像,不过到时候会有总结贴,把各位大神的 ppt 分享出来。
def idle?
  if (Adapter1IP.empty? || Adapter2IP.nil? || Adapter3IP.nil? || Adapter4IP.nil? || Adapter5IP.nil? )
    self.Idle = false
  else
    self.Idle = true
  end
  true # always return true
end
另外,在读数据的时候,不需要 self,写的时候才需要。
#4 楼 @birbird 不是这样的,假设before_filter的except你想写什么,你就在authenticate_required?写什么
例如:
# if action is xxx then skip authenticate
def authenticate_required?
  !(request.url.match /xxx/)
end
如果是用namespace,直接
# if namespace is xxx then skip authenticate
def authenticate_required?
  namespace.match /xxx/
end
代码没试,你可以自己试试看。
可以这样子
before do
  authenticate! if authenticate_required?
end
在定义 except 的情况
def authenticate_required?
end
#4 楼 @yangxing_star 哈哈哈哈
#13 楼 @xu_xiang_yang 这里调用的是
Restaurant.first.reviews.positive.count
includes(:reviews) 只会预加载所有的reviews,而不是带有条件rating > 3.0的 reviews
这里讲的就是把查询条件转成关联关系
has_many :positive_reviews, -> { positive }, class_name: "Review"
方便使用
Restaurant.includes(:positive_reviews)
主题更新:duxiaolong《关于微信上适合开发什么样的应用的一些思考?》
#22 楼 @PlayMonkey 你可以来分享一下你踩到的坑嘛。需要我帮你加一个主题么?
#19 楼 @dylanninin 约约约  
一看到做 schedule,之前用过这个 gem ice_cube 他里面的conflicts_with? 不知道可否借鉴一下。
斌哥,容我没把代码仔细看完...
@mouse_lin 狮哥,是不是先远程吐槽一下?
大家想听关于微信开发哪些方面的问题?麻烦跟帖回复一下。
#4 楼 @hz_qiuyuanxin 过后会有总结,你在广东么?
@lgn21st 麻烦帮忙置顶,谢谢!
:plus1: 支持支持
@PlayMonkey Rails 有数据库的适配器,写 SQL 可能需要保证切换数据库的时候也适用。
强制提交需慎重。
:plus1:
红色的文字告诉你哪里错了,黄色的告诉你要怎么解决。