Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Rei
@Rei
管理员
第 1 位会员 / 2011-10-28

[email protected]
深圳
182 篇帖子 / 9132 条回帖
727 关注者
0 正在关注
11 收藏
中下水平 Rails 程序员
打赏作者
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 风格变明快了 at 2014年02月12日

    面包屑有点怪。

    支持白色。

  • [前端框架] Bootstrap 3 与 Foundation 5 的五大区别 (译) at 2014年02月11日

    #7 楼 @darkbaby123 我觉得更好的方法是每个设备自己优化 px 的最佳显示比例,如果要开发者针对每个设备写 media query 那又是一个调试地狱了。

  • Ruby vs Python at 2014年02月10日

    Which better?

    Depending on your situation. Ruby is the first choice in most cases for me, unless there is a better solutions or I have no choice, for example: Javscript in browser.

    How to choose?

    Consider this questions:

    • What language is the standard in your target platform.
    • What language is using in your favorite company.
    • What language is using by your favorite developer.
    • What language make you happy.
  • Ruby vs Python at 2014年02月10日

    #10 楼 @rasefon Coffee 呢?

  • [前端框架] Bootstrap 3 与 Foundation 5 的五大区别 (译) at 2014年02月10日

    Foundation 没用过,之前用了另一个基于 rem 的框架 semantic-ui,rem 实用度并不如想象中高,我觉得 px 的显示效果应该交给设备自行优化。

    Bootstrap 如果一点不改就会产生大量雷同设计,非常无趣,不过真正掌握了的人是可以做出很优秀的设计的,看这个列表 http://expo.getbootstrap.com/ 。

    Bootstrap 适合快速搭建原型,之后再根据实际情况设计第二版,我下一个项目在用 Bootstrap。

  • 选取文章中第一张图片,如何写的更优雅一点 at 2014年02月09日
    <%= image_tag article_first_image_url(article) %>
    
    module ArticlesHelper
      def article_first_image_url(article)
        ...
      end
    end
    
  • 请教排序的问题 at 2014年02月09日

    #10 楼 @zw963 如果有好几个同分,排位就会靠后,不符合直觉。比如除去第一名,二、三名同分,一般说并列第二而不是并列第三。

  • 请教排序的问题 at 2014年02月08日

    #8 楼 @ruohanc 奥,是哦。

    User.where("robotic_catch > ?", current_user.robotic_catch).count + 1
    
  • 有没有必要预先提防新旧版本 ruby 之间可能会有不同的本地变量作用域? at 2014年02月08日

    #5 楼 @rasefon

    强类型

    2.1.0 :001 > 1 + '2'
    TypeError: String can't be coerced into Fixnum
            from (irb):1:in `+'
            from (irb):1
            from /home/rei/.rvm/rubies/ruby-2.1.0/bin/irb:11:in `<main>'
    

    弱类型

    > 1 + '2'
    "12"
    
  • 有没有必要预先提防新旧版本 ruby 之间可能会有不同的本地变量作用域? at 2014年02月08日

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

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

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

  • 请教排序的问题 at 2014年02月07日

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

  • Two big announcements. - 37signals at 2014年02月05日

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

  • 关于 PC 端 Webapp 和移动端 Webapp,轻应用,phonegap at 2014年02月05日

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

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

    #7 楼 @cassiuschen 你行你上啊

  • 谁能解释下 Go-Lang 的 Logo………… at 2014年02月04日

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

  • 关于 app/assets 和 vender/assets 以及 lib/assets, public/assets at 2014年02月04日

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

  • 谁能解释下 Go-Lang 的 Logo………… at 2014年02月04日

    搬砖

  • 怎么获取 url 链接的 html 内容来更新表单 at 2014年02月04日

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

  • 对 ruby 了解的太深入并不是好事 at 2014年02月04日

    楼主又来散布歪理了。 👎

  • 为什么,以及如何学习 Basecamp 架构 at 2014年02月03日

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

  • 新人求 Kaminari 分页问题 at 2014年02月01日
    <%= render @articles %>
    <%= paginate @articles %>
    
  • 新人求 Kaminari 分页问题 at 2014年02月01日

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

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

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

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

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

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