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

[email protected]
深圳
182 Topics / 9132 Replies
727 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
GitHub Public Repos
  • writings 940

    [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

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

  • rails-app 7

    A Rails project template lets me start new projects quickly.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • RubyConf China 第一日参会感受 at October 26, 2013

    #12 楼 @cassiuschen 课就是拿来逃的

  • 也没人集合一下啊,感觉都不认识 at October 26, 2013

    我也不认识……

    以前参加一个 mongodb 的沙龙发了贴纸自己写 ID,不知道还有时间弄不?

  • RubyConfChina 2013 After Party - 大会期间的三场 Party 活动! at October 25, 2013

    签到

  • Teahour.fm #36 和七牛的许式伟聊云存储以及做有追求的程序员 at October 25, 2013

    #23 楼 @ikbear #24 楼 @xushiwei 哈,怎么会喷的,应该是我要多吸取教训。

  • Teahour.fm #36 和七牛的许式伟聊云存储以及做有追求的程序员 at October 25, 2013

    #19 楼 @xushiwei 被挂城墙也是宝贵的经历啊,肯定有很多我可以学习的地方

  • Teahour.fm #36 和七牛的许式伟聊云存储以及做有追求的程序员 at October 24, 2013

    #15 楼 @lgn21st 我想看讲座资料 cc @xushiwei ,面基不用了……

  • Teahour.fm #36 和七牛的许式伟聊云存储以及做有追求的程序员 at October 24, 2013

  • 请问一下无论是任何程序语言,为什么都是 循环,条件这些呢? at October 24, 2013

    七周七语言 http://book.douban.com/subject/10555435/

  • Ruby 给一组对象赋新值,不得其领啊?求助~~ at October 24, 2013

    在 Rails 里面 puts 改成 Rails.logger.info

    我猜你用的是 ActiveRecord,item 不是 hash 而是 ActiveRecord 实例。

    我给你我的版本好了

    def self.get_cate_news(categories = [])
      categories.map do |category|
        img = self.get_news_list(false, false, "n.classid = '#{item.id}'", 'n.id desc', '2', '0')
        hot = self.get_news_list(false, false, "n.classid = '#{item.id}' and imgurl<>''", 'n.id desc', '12', '0')
        category.attributes.slice(:id, :classname).merge(
          :img => img,
          :hot => hot
        )
      end
    end
    
  • Ruby 给一组对象赋新值,不得其领啊?求助~~ at October 24, 2013

    加一行

    puts item.class
    

    看看

  • 要不要等新 Mac Mini at October 24, 2013

    根据这个记录:Don't buy!

    http://buyersguide.macrumors.com/#Mac_Mini

  • 使用 store 能这样建立关系吗? at October 24, 2013

    楼主应该去试试,然后把结果贴上来。

  • RubyConfChina 2013 的活动现场招聘区 at October 23, 2013

    征友……

  • Ruby 如何将时间戳转换为日期格式? at October 23, 2013
    require 'time'
    
    Time.at 1271952000
    # => 2010-04-23 00:00:00 +0800
    
  • clone 了 writings 项目,启动服务后访问无结果。。 at October 23, 2013

    #17 楼 @wcp1231 用 mongodb 是因为我看中它支持的数据类型多,例如数组,可以减少关联表的维护,现在我发现 pg 也不错。

  • clone 了 writings 项目,启动服务后访问无结果。。 at October 23, 2013

    #12 楼 @wcp1231 是不是没备案被屏蔽了。

  • clone 了 writings 项目,启动服务后访问无结果。。 at October 23, 2013

    #4 楼 @wcp1231 那么 ssh 断开之后服务就退出了吧。开发环境在本地跑,生产环境才推上服务器。

  • clone 了 writings 项目,启动服务后访问无结果。。 at October 23, 2013

    这跑的是开发环境?怎么部署的?

  • clone 了 writings 项目,启动服务后访问无结果。。 at October 23, 2013

    信息太少,无法判断。

  • Macaw: The Code-Savvy Web Design Tool (我也能玩转前端设计?) at October 21, 2013

    代码还是相信手写,不过这个拿来做原型不错。

  • Rails 如何对已有的数据表建立相应的 Model? at October 21, 2013

    导出当前的 schema

    rake db:schema:dump         # Create a db/schema.rb file that can be portably used against any DB supported by AR
    
  • Rails 如何对已有的数据表建立相应的 Model? at October 21, 2013

    现成的数据库根本不用 generate

    class Product < ActiveRecord::Base
    end
    

    就行了。

  • 阿里员工来往二维码 at October 21, 2013

    赶紧推出买友业务!只要价格比红包低就有钱途!

  • 如何实现基于 API 数据源的 model,不通过 AR 后者 DataMapper 来做? at October 19, 2013

    #6 楼 @everpointer 从简单做法做起,用一个 Module 放 API 相关的方法,多了之后划分多个 Module,需要保留状态就改成用 Class。

  • 如何实现基于 API 数据源的 model,不通过 AR 后者 DataMapper 来做? at October 19, 2013
    require 'json'
    
    JSON.parse "{\"name\":\"bob\",\"age\":22,\"awesome\":true}"
    # => {"name"=>"bob", "age"=>22, "awesome"=>true}
    
  • Prev
  • 1
  • 2
  • …
  • 166
  • 167
  • 168
  • 169
  • 170
  • …
  • 272
  • 273
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English