Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@kikyous
高级会员
第 2564 位会员 / 2012-06-16

[email protected]
西安
88 篇帖子 / 875 条回帖
20 关注者
0 正在关注
13 收藏
GitHub Public Repos
  • ChatGPT-Nuxt-Web 10

  • bootstrap3-sass 4

    bootstrap-sass 3 continue

  • vscode-css-action 3

    A vscode extension help editing scss/less file with color replace and px convert.

  • mitmfile.py 2

    Define and load mitmproxy config easy

  • easy_form 2

    form builder without complex dsl

  • tc-dev-enhance 1

  • vue3-ui-test 0

  • Clash.Meta 0

    A rule-based tunnel in Go.

  • inertia-rails 0

    The Rails adapter for Inertia.js.

  • deno_deploy_cors_proxy 0

    Deno Deploy CORS Proxy

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 全栈营感想 at 2016年09月18日

    5 星好评反 5 毛钱?

    唉,这游戏太难玩,怎么努力都比不上那些头脑灵活的人

  • 服务器监控,该选择哪个,NewRelic 还是听云或者 OneApm? at 2016年09月16日

    oneapm 我试用了一下,结果他们给我打了 n 个电话

  • [西安] 新空气软件技术有限公司诚聘 ruby 开发工程师 1 名 at 2016年09月01日

    @andrew_zyl 快来顶帖 😄

  • 调试工具你们是 pry 党还是 byebug 党? at 2016年08月22日

    pry

  • 记一次 Redis 实战,实现答题系统 at 2016年08月06日

    #4 楼 @quakewang 这样数据量大的话感觉效率不行

  • 记一次 Redis 实战,实现答题系统 at 2016年08月05日

    #1 楼 @mizuhashi 嗯,这个方法解决随机取数据好 👌

  • 有人知道为何不能预编译 Ruby 源码到字节码呢, 就像 Python 一样. at 2016年07月27日

    python 的字节码简直讨厌,一点用处没有

  • 1 at 2016年07月26日

    我的也在阿里云上面正常啊

  • Ruby 2.4 一些新特性 at 2016年07月22日

    ruby 还是这么给力

  • A simple and fast JSON API template engine for Ruby on Rails at 2016年07月21日

    #11 楼 @defmacro 这个地方确实让人费解

  • 有没有输入几个点然后能生成连线这样的 Gem 或是 JavaScript 库? at 2016年07月18日

    去看了一下 G2, 比 echart 好多了,echart 很多地方都很粗糙,像半成品。

  • Pokemon GO - 国内玩家通过 Xcode 改 GPS 玩游戏教程 at 2016年07月13日

    还是等口袋妖怪日月

  • [测试] 这些方法属于 Ruby 还是 Rails ? at 2016年07月12日

    You Scored: 10 / 10 Ranking: Ruby expert!

  • [测试] 这些方法属于 Ruby 还是 Rails ? at 2016年07月12日

    You Scored: 8 / 10 Ranking: Perfect!

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

    😭 https://ruby-china.org/teams

  • Rails 5 新功能 - 实现适用于不同场景的 ActiveRecord 验证 at 2016年07月08日

    #1 楼 @didme 我只是说一种方案

  • Rails 5 新功能 - 实现适用于不同场景的 ActiveRecord 验证 at 2016年07月08日

    laravel 在 controller 中进行 validate 更加灵活

  • 内网部署大家一般都是怎么做的 at 2016年07月06日

    docker

  • Rails + Puma 线程死掉了没有报错么? at 2016年07月05日

    和我遇到的问题一样,我也是微信公众号,nginx+puma 跑两天就挂掉了,还以为是线程安全的问题,换了 unicorn 一直没有出现问题

  • Rails 5 正式发布了 - Action Cable, API mode 以及其他新特性介绍 at 2016年07月01日

    http://blog.bigbinary.com/categories/Rails-5/ 这里有很多 rails 5 的新东西

  • Rails 5 正式发布了 - Action Cable, API mode 以及其他新特性介绍 at 2016年07月01日

    Active Record callbacks 要中段,现在需要用 throw(:abort) 的方式,而不是像以前返回 fals

  • Unicorn 是用 Ruby 写的? at 2016年06月24日

    puma, passenger

  • 最新的 Rails 5.0.0.rc1 跟 Devise、Cancan 这些 Gem 有兼容性问题吗? at 2016年06月22日

    devise 没问题,cancan 没用

  • Git 的仓库网络和要发布的环境不在同一个网络,怎么使用 Capistrano 等工具? at 2016年06月21日

    直接上 coding 吧

  • 新版的 cap 看着感觉好多了 at 2016年06月01日

    #3 楼 @hfpp2012 我们公司用 mina 部署 ruby 和 php 应用

  • 关于 included 方法的问题 at 2016年05月31日

    #3 文档中的 in preference to 并不是在什么之前的意思,而是说: Module.append_features 和 included 都能实现同样的功能,但你应该优先考虑使用 included

  • 关于 included 方法的问题 at 2016年05月31日

    #4 hook methods 一般都不会主动去调用

    included do 
      mattr_accessor :hair_colors 
    end 
    

    这里的 included 并不是前面的 included 他是在 ActiveSupport::Concern 里定义的新的方法

  • 关于 included 方法的问题 at 2016年05月31日

    #2

    module ModuleDemo
      def included(mod)
      end
      def self.included(mod)
      end
    end
    

    这两个是不同的函数,included 是 ModuleDemo 的实例方法,self.included 是 ModuleDemo 单件类的实例方法

    hook methods 的本质是在某事件发生后调用特定的方法,在 include 事件中这个特定的方法就是模块单件类的实例方法 included

    为什么是这个特定的方法呢?因为 included 作为 ModuleDemo 的实例方法,在类被实例化之前是无法被调用的

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