Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Jason
@falm
VIP
NO. 3400 / 2012-08-25

[email protected]
上海
4 Topics / 30 Replies
18 Followers
2 Following
38 Favorites
Reward
GitHub Public Repos
  • js-namespace-rails 57

    js-namespace-rails let you choose which javascript snippet can execute in rails assets pipeline

  • attribute-depends-calc... 41

    Automatically calculate a collection of depends attribute of ActiveRecord

  • number-timeago 13

    A number timeago package support 2..years.ago() method

  • redis-ssdb-proxy 12

    proxy that read from redis(or ssdb) write to both use for redis <=> ssdb migration on production

  • rdecorator 2

    yet another ruby decorator

  • the_rules 2

    simple rules engine for ruby

  • aliexpress 2

    针对 阿里速卖通的 api 的 ruby 包装(初步完成)

  • presentations 1

    presentations

  • mipush 1

    小米推送 Gem

  • tuicool_clone 1

    tuicool_clone

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [上海] 薄荷 2019 年春季诚聘 Ruby 工程师 at March 12, 2019

    👍 👍 👍 在薄荷和 Vincent 这样的良师益友一起工作,感觉非常棒。

  • [RubyConfChina2017 话题分享] Ruby Web 实时通讯方案剖析 (资料和参会感受) at September 21, 2017

    https://ruby-china.org/topics/34192 @lanzhiheng

  • [RubyConfChina2017 话题分享] Ruby Web 实时通讯方案剖析 (资料和参会感受) at September 20, 2017

    @lanzhiheng 当时也是没找到他的 ID,就把名字写上了!

  • [RubyConfChina2017 话题分享] Ruby Web 实时通讯方案剖析 (资料和参会感受) at September 20, 2017

    CentOS 6.7 Intel Xeon E31225 3.10GHz 16G RAM

  • 申请删帖 at June 04, 2017

    是谁说的Rubyist (Ruby开发者)都很信仰这个(block),『天下武功没有高低,习武之人有强弱』。

  • [上海][2016年8月16日] Ruby 聚会召集 at August 14, 2016

    👍

  • 做了一个 pointing poker,欢迎试用 at July 24, 2016

    👍

  • 新功能上线:公司/组织 at July 11, 2016

    Great 👍

  • RubyConf China 2016 时间地点确定及讲师征集 at June 29, 2016

    👏 👏 logo 很接地气

  • 焕然一新的讲稿网 at May 17, 2016

    :plus1:

  • 2016年5月21日 SH ❤ Ruby 聚会 (薄荷主办) at May 12, 2016

    :plus1: :plus1:

  • 分享一个吊炸天的玩意。 at April 15, 2016

    弄弄的复古风。

  • 上线用户活跃状态图,类似 GitHub at April 14, 2016

    以后 Boss 可以通过这个功能,检查你有没有认真工作了...

  • 如何在单表的所有字段中,查询包括关键词的所有记录 at December 12, 2015

    你要的是模糊匹配吧

    scope :search, ->(q) { where(column_names.map{|n| "#{n} like :q"} * ' or ', q: "%#{q.strip}%") }
    

    模糊匹配查询是比较耗时的,而且索引也不会生效,要是数据量大,建议像 @qinfanpeng 说的用全文搜索, 推荐 https://github.com/ankane/searchkick

  • 如何在单表的所有字段中,查询包括关键词的所有记录 at December 12, 2015

    看来你的 ruby 版本是 2.0 以下的,把 -> 和 (q) 中间的空格去掉就可以了

    scope :search, ->(q) { where(column_names.map{|n| "#{n}=:q"}.join(' or '), q: q) }
    
  • 如何在单表的所有字段中,查询包括关键词的所有记录 at December 12, 2015
    class Niu < ActiveRecord::Base
      ...
      scope :search, -> (q) { where(column_names.map{|n| "#{n}=:q"}.join(' or '), q: q) }
      ...
    end
    
  • 回调怎么执行了两次? at November 30, 2015

    使用 update_columns 代替 update_attributes 就不会再次触发 after_save 了

  • RubyConfChina 2015 10月10日 晚 AA 香蜜湖撸串活动 at October 09, 2015

    +2 看起来能不错!

  • 我用 Passenger + Nginx + Rails 配的服务器,老是出错 at June 01, 2013

    LZ 不换版本 可以照这个试试 https://github.com/FooBarWidget/passenger/pull/71/files

  • [福利] 七牛新后台上线 携手 Ruby China 放送现金券 at June 01, 2013

    [email protected]

  • 《Ruby on Rails Tutorial》中文版限免 at June 01, 2013

    恭喜呀!

  • 夏天来了,今年还发 T 恤不? at May 31, 2013

    +1

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English