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

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

    [Closed] Source code of writings.io

  • alipay 728

    Unofficial alipay ruby gem

  • code_campo 288

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

  • asciidoctor-pdf-cjk-ka... 102

    **no longer maintained**

  • geeknote 39

  • material-ui 17

  • htmlrenderer 12

  • rich-text-editor 12

  • llmrpg 8

  • rails-chatgpt-demo 8

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 有点变态的排序需求求助 at April 13, 2013

    哪个算法都好,用 sort_by 每个值只计算一次,提高效率

  • rails 路由配置时 URL 地址如何匹配下划线? at April 13, 2013

    #3 楼 @aisensiy /\h/ - A hexdigit character ([0-9a-fA-F])

  • rails 路由配置时 URL 地址如何匹配下划线? at April 13, 2013

    试试

    get 'doc/share/:randcode_:docid.html' => 'doc#share2', :constraints => { :randcode => /\h+/, :docid => /\d+/ }

  • 有点变态的排序需求求助 at April 13, 2013

    杠代表什么?

  • 想买 VPS 搭建个 Rails 网站,请帮忙指点一下 at April 12, 2013

    digitalocean 便宜,我也想弄个来放不怎么打理的网站。

  • 为什么没人用 ruby 来做运维? at April 12, 2013

    哈哈哈

  • 合并 validation 和一个初级问题 at April 12, 2013
    1. http://guides.rubyonrails.org/active_record_validations_callbacks.html#using-a-symbol-with-if-and-unless

    2. http://guides.rubyonrails.org/layouts_and_rendering.html#passing-local-variables

  • Knewone 和 writings.io 中 HTML 的压缩是如何实现的? at April 12, 2013

    writings.io 用的 slim

  • 学习多态遇到的一点问题 at April 11, 2013

    这问题跟多态无关,根据链接

    <% @comments.each do |comment| %>

    这个 @comments 可能没有赋值

  • ruby-china 404 页面 at April 11, 2013

    #2 楼 @iBachue

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013
    def create_time_zone_conversion_attribute?(name, column)
      time_zone_aware_attributes && !self.skip_time_zone_conversion_for_attributes.include?(name.to_sym) && column.type.in?([:datetime, :timestamp])
    end
    

    这行代码调用了 column.type 方法,很可能就是因为 helper 往 column_names 里面塞了一个字符串的关系。

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    #31 楼 @simonykq 就是对原有的修改。

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    还是要把错误栈贴全,出错页面点 Full Trace 然后把完整内容贴出来。

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    #27 楼 @simonykq 贴 db/schema.rb 里面的 places 表结构

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    还有这个文件 app/views/home/index.html.haml

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    #21 楼 @simonykq 排版 again。

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    贴这个文件内容 app/views/home/_places.html.haml

  • 管理首页问题 at April 11, 2013

    那就先 dump 一个 .sql,然后在 seed(或者别的脚本)里面调用系统命令导入。

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    为什么 11 楼那么多内容,16 楼那么少?

  • 关于 "undefined method `type' for nil:NilClass" at April 11, 2013

    type 是 activerecord 魔法字段,很可能是你用了这个字段。

  • 管理首页问题 at April 11, 2013

    seed.rb

  • rails middleware 太多是否会有性能问题? at April 11, 2013

    #13 楼 @zgm 用过一段时间 Archlinux 之后我就不喜欢做加法了。

  • rails middleware 太多是否会有性能问题? at April 11, 2013

    那么,你遇到性能问题了吗?

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