Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@niedhui
高级会员
第 226 位会员 / 2011-11-23

众牛(上海)股权众筹服务有限公司
上海
17 篇帖子 / 77 条回帖
0 关注者
0 正在关注
1 收藏
GitHub Public Repos
  • dotfiles 1

    dotfiles

  • ansibles 0

  • ansible-basic 0

  • solana-program-library 0

    A collection of Solana-maintained on-chain programs

  • liquidator 0

    open source version of a liquidation bot running against solend

  • nervos-hackaton 0

  • polyjuice-provider 0

    Godwoken L2 compatible providers for ethereum library

  • solana 0

    Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.

  • docs-cn 0

    TiDB/TiKV/PD documents in Chinese.

  • niedhui 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • ruby-china 源代码管理员账号是什么? at 2012年01月02日

    @inetufo user.rb

    def admin?
      return true if Setting.admin_emails.include?(self.email)
      return false
    end
    

    setting.rb

    source "#{Rails.root}/config/config.yml"
    

    config.yml

    admin_emails: 
      - "[email protected]"
    

    注册账号的时候用 [email protected] 或者把自己的 email 添上去就好了

  • 代码托管服务 GitCafe 正式上线 at 2012年01月02日

    哈哈,终于上线啦,同求邀请码!!!

  • 有人用 Emacs 做 Rails 开发吗? at 2011年12月29日

    vim 用过一段时间,主要就用 janus,感觉最爽的就是分屏和不用鼠标了,只是最近突然想了解下 emacs 到底有多神奇:)

  • 有人用 Emacs 做 Rails 开发吗? at 2011年12月27日

    是啊,还是乖乖用回 textmate 吧。。。

  • 请问 drop_breadcrumb render_list 这两个函数是在哪里定义的呢? at 2011年12月15日

    git://github.com/xdite/bootstrap-rails.git bootstrap-rails/breadcrumb.rb bootstrap-rails/helper.rb

  • meta_search 帮助你实现复杂的组合查询 at 2011年12月07日

    非常不错,正好需要这个,回头试试,哈哈

  • [上海][2011年12月06日] RubyTuesday 活动 at 2011年12月06日

    @ghosTM55 停车好停不?

  • Teamhost 0.9.1 发布啦! at 2011年12月06日

    注册用户 500 了,Internal Security Error,发不上来图

  • Ruby-China 不能发图? at 2011年12月06日

    我刚才发图的时候也报了错,提示 访问被拒绝,你可能没有权限或未登录,我是登录的啊

  • Mongoid & Kaminari query in view at 2011年12月05日

    那么我有点迷惑了 1.(实际的 query 在 view 中执行) controller

    def index
        @products = Products.all.page(1)
    end
    

    view

    - @products.each do |p|
      - xxxx
    

    2.(实际的 query 在 controller 中执行) controller

    def index
        @products = Products.all.page(1).execute
    end
    

    view

    - @products.each do |p|
      - xxxx
    

    3.(实际的 query 在 view 中执行) controller

    def index
    end
    

    view

    - Products.all.page(1).each do |p|
      - xxxx
    

    在速度上有区别吗?(我这里测下来差不大) @xdite 在 blog http://wp.xdite.net/?p=3063 中提到真正速度緩慢的元兇是:Query in View。 我这个例子中有导致缓慢的 Query in view 吗? 另外:如果 Query in view 是指逻辑,那么就应该不会影响速度了啊?? 求解

  • Mongoid & Kaminari query in view at 2011年12月05日

    #1 楼 @Rei thanks 在 action 里面 execute 不会使速度边快,只是查询耗时从 view 里面移到 action 而已 确实

  • 上次谁说过一个 markdown 书写生成 slideshow 的工具,找不到了 at 2011年12月05日

    这个? http://www.ngolde.de/tpp.html

  • 不小心买了个日版的键盘。。。 at 2011年12月05日

    空格键还好,主要基本上所有关于符号的键位都和平常用的‘标准键盘’的,现在我已经用不出 cmd+`这个快捷键了

  • 我的工作室能够赞助上海地区 Ruby Tuesday 的活动 at 2011年11月30日

    好地方

  • 中央政府采购网竟然是用 rails 开发的 at 2011年11月30日

    哇靠,真的挂了

  • [上海][2011 年 11 月 29 日] RubyTuesday 活动 at 2011年11月29日

    签到

  • 关于 ruby-china 代码中的 callback at 2011年11月28日

    所以说 callback 有三种写法:

    before_create :do_sth
    
    before_create do
      # do something
    end
    

    这两种是等价的

    def before_create 
      # do something
    end
    

    这个是不会被继承的。 可对?

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