Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
陆晓勇
@justin
高级会员
第 1680 位会员 / 2012-04-01

[email protected]
阿里云
广州
8 篇帖子 / 192 条回帖
33 关注者
13 正在关注
9 收藏
GitHub Public Repos
  • react-redux-antd 417

    react redux for CMS/Enterprise class App/ERP/Admin with ant-design

  • egg-http-auth 7

    egg plugin for HTTP basic and digest access authentication

  • egg-delayed-job 4

    A priority job queue backed by redis, built for eggjs.

  • react-loadmask 3

    loading mask for react

  • justin-lu 0

  • justin-lu.github.io 0

    my blog

  • plugin-request 0

    Integrate umi-request and @umijs/use-request deeply to umi.

  • alias 0

    The alias for git,rails,heroku and so on.

  • juejin-crawler 0

    crawler demo

  • ant-design-vue 0

    An enterprise-class UI components based on Ant Design and Vue. 🐜

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • zsh_stats 查看你命令使用频率 at 2015年07月28日
     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 详解 at 2015年07月27日

    你的 Gemfile 的源都会背要求设置为

    "背" -> "被"

  • 今年大会延期至 10月10日-11日 at 2015年07月27日

    #1 楼 @kgen :plus1:

  • 有没有命令行能启动的 ruby 静态文件服务器 at 2015年07月23日
    alias open-on-server='python -m SimpleHTTPServer'
    

    来个 python 版本

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月21日

    #27 楼 @xiaoniuniu 没有录像,不过到时候会有总结贴,把各位大神的 ppt 分享出来。

  • [已解决] 想做一个保存前的检查,导致 save 失败,求指点,谢谢! at 2015年07月18日
    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,写的时候才需要。

  • Grape 的 before 没有 except 怎么解 at 2015年07月17日

    #4 楼 @birbird 一般一个资源就是一个namespace 你也可以添加一个namespace都是不需要鉴权的

  • Grape 的 before 没有 except 怎么解 at 2015年07月17日

    #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
    

    代码没试,你可以自己试试看。

  • Grape 的 before 没有 except 怎么解 at 2015年07月17日

    可以这样子

    before do
      authenticate! if authenticate_required?
    end
    

    在定义 except 的情况

    def authenticate_required?
    end
    
  • Rails ActiveRecord 如何获取 Mysql column comment? at 2015年07月17日

    #4 楼 @yangxing_star 哈哈哈哈

  • Rails Scopes 预加载 at 2015年07月17日

    #17 楼 @ywjno 这么神奇,可以把大概的情况描述一下,分享分享。

  • Rails Scopes 预加载 at 2015年07月16日

    #15 楼 @ywjno 这个应该只是在数据量比较少的情况下吧?

  • Rails Scopes 预加载 at 2015年07月16日

    #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)
    
  • Rails ActiveRecord 如何获取 Mysql column comment? at 2015年07月16日

    这里有个Gem,可以参考下实现过程

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月13日

    主题更新:duxiaolong《关于微信上适合开发什么样的应用的一些思考?》

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月13日

    #22 楼 @PlayMonkey 你可以来分享一下你踩到的坑嘛。需要我帮你加一个主题么?

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月10日

    #19 楼 @dylanninin 约约约 😄

  • [Rails Girls 上海][2015-08-16] 教练报名 at 2015年07月10日

    #4 楼 @ruby_sky 已经等不急了。

  • 寻求优雅的代码, 计算两个日程是否有冲突? at 2015年07月08日

    一看到做 schedule,之前用过这个 gem ice_cube 他里面的conflicts_with? 不知道可否借鉴一下。

    斌哥,容我没把代码仔细看完...

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月08日

    #15 楼 @leondu 👏

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月08日

    @mouse_lin 狮哥,是不是先远程吐槽一下?

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月08日

    大家想听关于微信开发哪些方面的问题?麻烦跟帖回复一下。

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月07日

    #4 楼 @hz_qiuyuanxin 过后会有总结,你在广东么?

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月07日

    #3 楼 @lgn21st 麻烦了

  • [广州][2015年07月22日 19:00] GZRUBY 第 26 次聚会 [微信开发专场] at 2015年07月06日

    @lgn21st 麻烦帮忙置顶,谢谢!

  • RubyConf China 2015 将于 10月10日-11日 于深圳举办 (内附讲师征集链接) at 2015年07月06日

    :plus1: 支持支持

  • Rails Scopes 预加载 at 2015年07月04日

    @PlayMonkey Rails 有数据库的适配器,写 SQL 可能需要保证切换数据库的时候也适用。

  • 删除 GitHub 远程仓库中 master 分支的多个提交 at 2015年07月03日

    强制提交需慎重。

  • 参与开发的 ruby gems 的下载量破五百万了... at 2015年07月02日

    :plus1:

  • 这是什么意思??搭建环境到这一步卡住了 at 2015年07月02日

    红色的文字告诉你哪里错了,黄色的告诉你要怎么解决。

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