Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Rei
@Rei
Admin
NO. 1 / 2011-10-28

[email protected]
深圳
188 Topics / 9152 Replies
730 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
GitHub Public Repos
  • writings 941

    [Closed] Source code of writings.io

  • alipay 732

    Unofficial alipay ruby gem

  • code_campo 291

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 101

    **no longer maintained**

  • asciidoctor-htmlbook 31

    Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook docu...

  • material-ui 17

  • geeknote 15

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 画说 Ruby 与 Python 垃圾回收 at November 20, 2015

    原文介绍不妨写得明显些,我点进链接才知道是 2013 年的文章。

    Visualizing Garbage Collection in Ruby and Python October 24th 2013

    http://patshaughnessy.net/2013/10/24/visualizing-garbage-collection-in-ruby-and-python

  • Bower 宣告终止开发?(18 Nov 2015 updated: Bower is alive, looking for contributors) at November 20, 2015

    #18 楼 @sharpx http://browserify.org/

    Browserify lets you require('modules') in the browser by bundling up all of your dependencies.

  • Bower 宣告终止开发?(18 Nov 2015 updated: Bower is alive, looking for contributors) at November 20, 2015

    Bower is alive, looking for contributors http://bower.io/blog/2015/bower-alive-looking-contributors/

  • rails-assets.org 挂掉了 at November 19, 2015

    目前建议手工下载到 vendor。

  • 如何研究一个 Gem 包? at November 19, 2015

    #22 楼 @so_zengtao ???什么问题?

  • Ruby 开发遇到的坑 at November 18, 2015

    #12 楼 @sevk BigDecimal 会淘汰 Integer 和 Float 吗?

  • 新手做 Blog,index 页面底部出现问题 at November 17, 2015

    <%= @posts.each do |post| %>

    改成

    <% @posts.each do |post| %>

  • 准备着手翻译出版《Rebuilding Rails》,有人愿意买吗? at November 16, 2015

    会买,最好有电子版(epub/pdf/mobi)。

  • DRb 和 Daemon 简单认识和想在一个应用中是否可以使用它们的问题 at November 16, 2015

    排版说明 https://ruby-china.org/markdown

  • 使用 Docker 部署应用如何执行脚本文件? at November 16, 2015

    RUN whereis bundle 看看 bundle 在哪。

  • Ruby 核心库文档最全的是哪个?each_with_index 为甚么没有写到文档里?已解决,请求封帖 at November 16, 2015

    不说 Google 了,Ruby-Doc 站内搜索就有,不知道楼主怎么找的。

  • 使用 Docker 部署应用如何执行脚本文件? at November 16, 2015

    我不知道了。

  • 使用 Docker 部署应用如何执行脚本文件? at November 16, 2015

    CMD ["bash", "init.sh"]

  • 使用 Docker 部署应用如何执行脚本文件? at November 16, 2015

    把 init.sh 的

    #!/bin/sh
    

    换成

    #!/bin/bash
    

    看看。

  • 使用 Docker 部署应用如何执行脚本文件? at November 16, 2015

    没看到安装 bundler 的命令,bundler 不是 Ruby 自带的。

  • 关联里的 class_name 和 foreign_key 不是重复的吗? at November 13, 2015

    编程第一条法则:永远都是你的错 https://ruby-china.org/topics/28046

    has_many :active_relationships,按约定应该找 ActiveRelationship,class_name 指定了要找的是 Relationship; has_may 的主体是 User,按约定关联的表应该用 user_id 做外键,foreign_key 指定了 follower_id。

  • 关联里的 class_name 和 foreign_key 不是重复的吗? at November 13, 2015

    顶楼的 Relationship 和 follower_id 不重复啊。

  • 如何能更好的获取或者找回关联的对象? at November 13, 2015

    #6 楼 @kai209209 那么就把 a 当参数。

  • 如何能更好的获取或者找回关联的对象? at November 13, 2015
    class A < ActiveRecord::Base
      has_many :bs
    
      def search_bs(params)
      end
    end
    
    def show
      @bs = a.search_bs(params)
    end
    
  • 如何能更好的获取或者找回关联的对象? at November 13, 2015

    #2 楼 @kai209209 那这个方法应该是 A 的实例方法。

  • 关于 Rails 的动态模型,不重启服务器是不是不能更新呢? at November 13, 2015

    #11 楼 @yan32768 客户要的就是数据库管理软件?那么找个现成的给他们啊。

  • 如何能更好的获取或者找回关联的对象? at November 13, 2015

    那么 a.bs 为空的时候你期望这个方法怎么处理?

  • 关于 Rails 的动态模型,不重启服务器是不是不能更新呢? at November 13, 2015

    #9 楼 @yan32768 业务层抽象一个模型,底层数据库不变。

  • Rails Log 里面显示的 View + ActiveRecord 耗时和总耗时不一致? at November 13, 2015

    除了 view 和 db,应用还有没有别的耗时操作?

  • Rails Log 里面显示的 View + ActiveRecord 耗时和总耗时不一致? at November 13, 2015

    #2 楼 @tsinghan 不知道,你可以换个环境试试。

  • 关于 Rails 的动态模型,不重启服务器是不是不能更新呢? at November 13, 2015

    在线上动态建立表单和重载模型不是个好方案,不要这样做。

  • Rails Log 里面显示的 View + ActiveRecord 耗时和总耗时不一致? at November 13, 2015

    如果是虚拟机里面,可能是文件共享导致的磁盘性能低。可以替换其他同步方案 https://docs.vagrantup.com/v2/synced-folders/index.html

    或者是被其他系统性能拖慢。

  • 关于给一些接口添加验证码的问题 at November 13, 2015

    #8 楼 @jasonliu 这是两个 action,应该在两个 action 里面判断是否 需要 验证码,而不是在验证码接口判断是否 提供。

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