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

[email protected]
深圳
188 Topics / 9160 Replies
730 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
  • What Ruby could do? at November 13, 2014

    opal 本来我觉得没什么用,直到我看到 https://github.com/asciidoctor/asciidoctor.js

  • 把密码文件 push 到远程了,咋办:( at November 12, 2014

    https://help.github.com/articles/remove-sensitive-data/

  • Ruby 如何用 for 循环打印一个三角形? at November 11, 2014

    #7 楼 @libuchao 没有用到 for 循环。

  • Ruby 如何用 for 循环打印一个三角形? at November 11, 2014

    #4 楼 @luikore 还是你的简洁……

  • Ruby 如何用 for 循环打印一个三角形? at November 11, 2014
    triangle = <<EOF
    *
    * *
    *   *
    * * * *
    EOF
    
    for line in triangle.lines
      puts line
    end
    
  • Ruby China 的流量有没有达到百万级? at November 11, 2014

    楼主你看,我可以用这个马甲给你回复

  • 求助!一个很基础的关于 link_to 的问题 at November 11, 2014

    #3 楼 @joke1943 我不用 IDE,要推荐就是 https://www.jetbrains.com/ruby/ 了。

    我现在用 https://atom.io/ 编辑器。

  • 为什么说 Raptor 比 Unicorn 快 4 倍,比 Puma 快 2 倍 at November 11, 2014

    看到后半看不懂了,等 Passenger 的大大发文分析。

  • 求助!一个很基础的关于 link_to 的问题 at November 11, 2014
    <h1>请假记录</h1>
    <%= link_to 'New note’, new_notes_path %><!--这里出错,找不到原因,求助!-->
    
    <table>
      <tr>
        <th>请假人</th>
        <th>时间</th>
      </tr>
    
      <% @notes.each do |note| %>
        <tr>
          <td><%= note.name %></td>
          <td><%= note.time %></td>
          <td><%= link_to 'Show', note_path(note) %></td>
        </tr>
      <% end %>
    </table>
    

    如果楼主好好排版就能发现问题了。

  • AngularJS 2.0 正在路上.. at November 10, 2014

    #9 楼 @lawrence 所有技术都是程序员的玩具,顺便用来解决生产问题。

  • Is Rails Slow? by Akira Matsuda at November 10, 2014

    #20 楼 @realwol 如果详细比较,就会发现这些比较对象不是一个层面的东西,越往上,开发者要做的东西就越多,例如 http 头都要自己设置,而越往下内置的功能越多,例如 session、路由、跨站预防…… hello world 跑分不是衡量工具选择的唯一标准。

    不过这个测试还是挺有用的,至少是一个参考因素。

  • Is Rails Slow? by Akira Matsuda at November 10, 2014

    #26 楼 @sickate 看来需要考古了,我本来以此为共识发这个话题的:

    https://ruby-china.org/topics/9825 https://ruby-china.org/topics/9853

  • AngularJS 2.0 正在路上.. at November 09, 2014

    Angular 2 的模板类似这样:

    <input type="text" [value]="firstName">
    <button (click)="addPerson()">Add</button>
    

    polymer 的模板(其实就是 HTML 标记)类似这样:

    <my-counter counter="10">Points</my-counter>
    

    不过实际上模板是隐藏在内部,类似一般的模板:

    <template>
      <style> /*...*/ </style>
      <div id="label"><content></content></div>
      Value: <span id="counterVal">{{counter}}</span><br>
      <button on-tap="{{increment}}">Increment</button>
    </template>
    

    同样基于 Components,不见得要用 Angular。

  • AngularJS 2.0 正在路上.. at November 09, 2014

    #6 楼 @lawrence 没用上,以前读过 angular 和 ember 还有 backbone 的文档,觉得这种开发方法都不是很适合我,所以还是默认的 Rails Stack。现在庆幸没用 angular,也可以从选项中除名了。

  • 定义 class 的时候,前面加上:: 是什么意思? at November 09, 2014

    :: 是从顶层开始查找,如果没有 :: 就从当前域查找。需不需要 :: 取决于当前域有没有同名常量。

  • Is Rails Slow? by Akira Matsuda at November 09, 2014

    #17 楼 @realwol http://www.techempower.com/benchmarks/

  • AngularJS 2.0 正在路上.. at November 09, 2014

    1.3 用户被无情抛弃,还跟着上 2.0 就是真爱。

  • Is Rails Slow? by Akira Matsuda at November 09, 2014

    #15 楼 @realwol 那么标题就要换 Is Ruby Slow? 了

  • 为什么要使用 FactoryGirl? at November 07, 2014

    我不懂怎么设置一个满足所有测试需求的 Fixture 数据集,FactoryGirl 可以在每个 test case 中独立。

  • 建议 ruby-china 添加站内搜索功能 at November 07, 2014

    #19 楼 @huobazi #20 楼 @lgn21st

  • 丰富的行业经验 at November 07, 2014

    #25 楼 @Victor 买现成的几十刀就行了,专门设计就不止了吧。

    http://graphicriver.net/category/logo-templates

  • activerecord 用 find_by_sql 方法进行多表查询数据总是会出现一条 count 查询,如何去掉?(已解决) at November 06, 2014

    #2 楼 @zhq_zhq 用的什么插件?

    思路:看文档,有没有跳过 count 直接设置总数的接口,有的话缓存总数,查询的时候直接设置;没有话打补丁加个接口。

  • activerecord 用 find_by_sql 方法进行多表查询数据总是会出现一条 count 查询,如何去掉?(已解决) at November 06, 2014

    paginate 算总页数的时候需要用到 count。

  • rails 随机生成字母跟数字的组合,比如 4 位、6 位、7 位等等 at November 06, 2014

    http://ruby-doc.org/stdlib-2.1.4/libdoc/securerandom/rdoc/SecureRandom.html

  • 关于 Rails 如何来初始化数据库 at November 06, 2014

    关于 Rails 如何来初始化数据库

    直接回答是 Migrations and Seed Data http://guides.rubyonrails.org/migrations.html#migrations-and-seed-data

    顶楼思路我觉得不是好思路,不回答。

  • 关于 routes 中的 resource 的单数复数问题 at November 06, 2014

    #4 楼 @shangrenzhidao 文档说 Code A 表示这个意思,Code B 表示那个意思,但没说 Code B 可以跑起来。

  • 关于 routes 中的 resource 的单数复数问题 at November 06, 2014

    rails 是如何处理的 ?

    会报错,缺少 controller。

  • 建议 ruby-china 添加站内搜索功能 at November 05, 2014

    从体验的角度,社区是应该自建搜索,或者至少换用未被墙的搜索引擎。

    但我觉得宁愿留着这么一个体验很差的地方,也要告诉初学者什么是第一个需要克服的。在中国大陆,如果自己不努力克服一些麻烦,那么总遇到一些可预见的问题:

    1. rvm 安装过程卡住了。
    2. gem 安装过程卡住了。
    3. youtube 上的演讲录像看不了。
    4. Github/Stack Overflow 访问不稳定

    不是所有资源都会有镜像,每次触墙就等着别人搬运,那么接触资讯的机会完全掌握在别人手里,本来就落后的资讯会变得更落后。

    也许会有人说,不该对初学者这么“不友好”,然后奉上不用不用很麻烦很累就能学习的方法。但我可以断言,没有排除万难获取资讯的本能的话,是成不了好的程序员的。

  • Sinatra 框架如何学习 at November 04, 2014

    #1 楼 @pobing 你原来的回复有疑似盗版的链接,我替换为购买链接了。

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