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

[email protected]
深圳
184 Topics / 9139 Replies
729 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

  • htmlrenderer 12

  • rich-text-editor 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
  • 运行 rake assets:precompile 时总是出现编码问题,但是并没有写错啊 at February 12, 2014

    #7 楼 @zhq_zhq 不主动提供细节谁能帮到你啊?

  • 一个邮件功能的测试 at February 12, 2014

    到垃圾邮件箱看看。

    不知道用的是什么邮件发送服务,默认应该用的是系统的 sendmail 命令,看看日志(Linux 在 /var/log/mail)是否发送成功。

    我的经验是用自己服务器上的邮件发送服务总是问题多多,还有可能被当作垃圾邮件,最好用专门的邮件服务比如 SES,Mailgun 等。

  • 风格变明快了 at February 12, 2014

    面包屑有点怪。

    支持白色。

  • [前端框架] Bootstrap 3 与 Foundation 5 的五大区别 (译) at February 11, 2014

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

  • Ruby vs Python at February 10, 2014

    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 February 10, 2014

    #10 楼 @rasefon Coffee 呢?

  • [前端框架] Bootstrap 3 与 Foundation 5 的五大区别 (译) at February 10, 2014

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

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

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

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

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

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

    #8 楼 @ruohanc 奥,是哦。

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

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