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

[email protected]
深圳
188 Topics / 9160 Replies
731 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**

  • geeknote 34

  • 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

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 有没有必要预先提防新旧版本 ruby 之间可能会有不同的本地变量作用域? at February 08, 2014

    #3 楼 @nagae_memooff 有很多方法可以将代码挪来挪去,推荐《重构 Ruby 版》这本书,但是这么一小段代码我怀疑是否有这么大优化价值,不想脱离实际环境讨论 模式 ,除非真的出现问题。

  • 有没有必要预先提防新旧版本 ruby 之间可能会有不同的本地变量作用域? at February 08, 2014
    1. Ruby 是强类型、动态语言
    2. 一般这么写
    result = if condition
                some_function object
             else
                another_function object
             end
    render_result result
    
  • 请问 backup-aliyun 那个插件还能用吗?我这里一直报错 at February 08, 2014

    应该提交 issues,github 会发邮件提醒给维护者。issues 也好管理进度。

  • 请教排序的问题 at February 07, 2014

    User.where("robotic_catch > ?", current_user.robotic_catch).order(robotic_catch: :desc).count + 1

  • Two big announcements. - 37signals at February 05, 2014

    #2 楼 @huaoguo 我家门前有两棵树,一棵是枣树,另一颗也是枣树。 —— 鲁迅

  • 关于 PC 端 Webapp 和移动端 Webapp,轻应用,phonegap at February 05, 2014

    Rails 框架提取自 Basecamp https://basecamp.com/

    1. 主站是 Rails 应用
    2. 为移动设备渲染移动优化的模板
    3. 提供 API
    4. iOS/Android 应用利用 webview 重用 Web 页面
  • 谁能解释下 Go-Lang 的 Logo………… at February 04, 2014

    #7 楼 @cassiuschen 你行你上啊

  • 谁能解释下 Go-Lang 的 Logo………… at February 04, 2014

    #4 楼 @cassiuschen http://concur.rspace.googlecode.com/hg/talk/concur.html#landing-slide 一个演讲的 PPT,视频地址忘了。

  • 关于 app/assets 和 vender/assets 以及 lib/assets, public/assets at February 04, 2014

    用这些工具对比 Assets Pipeline 有什么优势?

  • 谁能解释下 Go-Lang 的 Logo………… at February 04, 2014

    搬砖

  • 怎么获取 url 链接的 html 内容来更新表单 at February 04, 2014

    表单把 url 字段 ajax 提交到服务端一个 fetch api,api 返回抓取内容,客户端更新表单。

  • 对 ruby 了解的太深入并不是好事 at February 04, 2014

    楼主又来散布歪理了。 👎

  • 为什么,以及如何学习 Basecamp 架构 at February 03, 2014

    #16 楼 @swordray 很大,很多细节问题。

  • 新人求 Kaminari 分页问题 at February 01, 2014
    <%= render @articles %>
    <%= paginate @articles %>
    
  • 新人求 Kaminari 分页问题 at February 01, 2014

    <%= render @articles %> 渲染文章列表

    <%= paginate @articles %> 渲染分页导航

    做的是两件事,不要组合在一起。

  • 缓存处理的代码有没有优雅一点的写法? at January 30, 2014
    cache.fetch(key) do
       # balabala
    end
    
  • Macbook Air 能否连双显示器 (非苹果显示器)? at January 26, 2014

    #8 楼 @miclle 因为你言语带攻击性,我想知道你是否有足够理由。

  • Macbook Air 能否连双显示器 (非苹果显示器)? at January 25, 2014

    #2 楼 @miclle 你能证明楼主看不过来吗?

  • 如果比较普通的网站后台是不是可以用后台插件写呢? at January 25, 2014

    库级别的文档没那么多人有空翻译的。

  • rvm 安装问题 at January 25, 2014

    http://www.wapm.cn/smart-questions/smart-questions-zh.html

    愚蠢:我不能编译某项目的源代码,它为什么这么破? 提问者假设是别人搞砸了,太自大了。

    明智:某项目的源代码不能在某 Linux 6.2 版下编译。我读了常见问题文档,但其中没有与某 Linux 相关的内容。这是编译时的记录,我做错了什么吗? 提问者已经指明了运行环境,读了常见问题文档(FAQ),列出了错误,也没有假设问题是别人的过错,这家伙值得注意。

  • 记录删除的处理方法 at January 25, 2014

    #19 楼 @joezhang params[:id] 类型应该是字符,可能跟存的 id 不同。

  • 记录删除的处理方法 at January 25, 2014

    AND,不要忘了 Mongodb 可以对数组字段建索引。

  • 记录删除的处理方法 at January 25, 2014

    #7 楼 @Yujing_Z 其实就算有查找用户关注的所有帖子功能,也可能是在 Topic 单边存 like_ids 更快。

    以前做过性能测试,不过测试脚本不小心删了,仅供参考,最好自己试一试 http://codecampo.com/topics/168

    清除 User 的 like 数据我在 4 楼已经说了

    Topic.where(like_ids: user.id).pull(:like_ids: user.id)
    
  • 记录删除的处理方法 at January 24, 2014

    这个操作 Mongodb 可以批量执行啊。update_all

  • 版上哪位朋友对 SEO 感兴趣?平时都做些什么?从哪里收集 SEO 的知识? at January 24, 2014

    AND,理解 HTML 元素的语义。https://developer.mozilla.org/zh-CN/docs/HTML/HTML5

  • 版上哪位朋友对 SEO 感兴趣?平时都做些什么?从哪里收集 SEO 的知识? at January 24, 2014

    我更关注 Open Graph,Twitter Card。

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