Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Jason
@falm
高级会员
第 3400 位会员 / 2012-08-25

[email protected]
上海
4 篇帖子 / 30 条回帖
18 关注者
2 正在关注
38 收藏
打赏作者
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海] 薄荷 2019 年春季诚聘 Ruby 工程师 at 2019年03月12日

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

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

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

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

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

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

    CentOS 6.7 Intel Xeon E31225 3.10GHz 16G RAM

  • 申请删帖 at 2017年06月04日

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

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

    👍

  • 做了一个 pointing poker,欢迎试用 at 2016年07月24日

    👍

  • 新功能上线:公司/组织 at 2016年07月11日

    Great 👍

  • RubyConf China 2016 时间地点确定及讲师征集 at 2016年06月29日

    👏 👏 logo 很接地气

  • 焕然一新的讲稿网 at 2016年05月17日

    :plus1:

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

    :plus1: :plus1:

  • 分享一个吊炸天的玩意。 at 2016年04月15日

    弄弄的复古风。

  • 上线用户活跃状态图,类似 GitHub at 2016年04月14日

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

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

    你要的是模糊匹配吧

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

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

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

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

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

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

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

    +2 看起来能不错!

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

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

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

    [email protected]

  • 《Ruby on Rails Tutorial》中文版限免 at 2013年06月01日

    恭喜呀!

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

    +1

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