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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 借用 ruby-china 的程序搭自己的论坛有什么问题吗? at 2013年05月21日

    #6 楼 @kennyworld 不只新手,现在我也对源码不太了解了,开发过程先后加入了很多开发者引入了各种各样的插件。如果有一些 Rails 实战经验,可以根据功能追溯源码的位置。

  • 借用 ruby-china 的程序搭自己的论坛有什么问题吗? at 2013年05月21日

    Ruby China 只是为了这个社区而开发的,功能和兼容性没有考虑普遍情况,所以最好自己看得懂这套程序才好维护。Codecampo 也是这样(很久没动了)。

  • 有人告诉我如果数据量大了就不能做分页了?是这样么? at 2013年05月21日

    我说说 CSDN BBS 的方案,把 topic_id, forum_id, status 这些列表用到的字段单独放到一张内存表加索引,查几千页没问题。

    http://bbs.csdn.net/forums/DotNET?page=3500

  • Github 的 Explore 真是个好东西 at 2013年05月20日

    我过去找 gem 都去 http://ruby-toolbox.com/

    最近没怎么用新 gem,google 通常很快找到第一选择,就不怎么去了。

  • 求助一个很诡异的问题 at 2013年05月20日

    rvm 没装好,报操作系统。

  • 牢骚下,Linux 下 QQ 真实头大 at 2013年05月19日

    #14 楼 @aptx4869 不考虑授权问题?

  • 牢骚下,Linux 下 QQ 真实头大 at 2013年05月19日

    #11 楼 @as181920 性能够的话,放到第二桌面,还不怕弹消息打断工作。

  • 牢骚下,Linux 下 QQ 真实头大 at 2013年05月19日

    vbox

  • 写一个 Gem 需要哪些知识? at 2013年05月17日

    #4 楼 @hooopo 卧槽

  • 写一个 Gem 需要哪些知识? at 2013年05月17日

    发布 gem 还需要一份责任心。

  • 一个重构代码的问题 at 2013年05月17日
    class Product
      # overwrite the product#name method
      def name
        read_attribute(:name)
      end
    end
    

    奥,没留意楼主没用 ORM,那直接 2 楼行了

  • slim 有些情况写 js 是不是会有问题啊? at 2013年05月17日

    版本多少,我今天 update 出问题了

    http://ruby-china.org/topics/11049

  • 我今天才知道 bundle update 不一定得到最新版本 at 2013年05月17日

    To do this, run bundle update, which will ignore the Gemfile.lock, and resolve all the dependencies again. Keep in mind that this process can result in a significantly different set of the 25 gems, based on the requirements of new gems that the gem authors released since the last time you ran bundle update.

    我觉得我没理解错啊,update 不是升级到满足依赖的最新版的意思吗?

  • 我今天才知道 bundle update 不一定得到最新版本 at 2013年05月17日

    If you run bundle update with no parameters, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources.

    http://gembundler.com/v1.3/bundle_update.html

    这咋回事。

  • 代码混写的问题 at 2013年05月16日

    为什么楼主不想想是自己的问题?

  • 怎样在 rails 的 view 中调用 .coffee 中的函数 at 2013年05月16日

    Working with JavaScript in Rails http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html

  • 怎样在 rails 的 view 中调用 .coffee 中的函数 at 2013年05月16日

    #6 楼 @aptx4869 奥,才发现楼主的写法。

    onclick 这种方法很不时髦,转 unobtrusive javascript

  • gae 都支持 php 了,不知道什么时候支持 ruby! at 2013年05月16日

    别想了。

  • 怎样在 rails 的 view 中调用 .coffee 中的函数 at 2013年05月16日
    @test = test
    

    原理也是全局变量。

    如果不希望全局变量,其实是要好好规划自己的 js 模块。可以看看 turbolinks 的代码

    https://github.com/rails/turbolinks/blob/master/lib/assets/javascripts/turbolinks.js.coffee

  • Working With Unix Processes for Rubyist at 2013年05月16日

    等中文版 epub 格式电子书。

  • ok, glass at 2013年05月16日

    我已经饥渴难耐啦

  • [杭州][2013年5月16日] Ruby Tuesday 活动召集 - 朴灵讲 nodejs at 2013年05月16日

    这么多人黑不缺我一个了 : )

    看这两段类似功能的代码量的对比

    https://github.com/chloerei/code_campo/blob/master/app/controllers/topics_controller.rb https://github.com/cnodejs/nodeclub/blob/master/controllers/topic.js

    虽然说 cnodejs 这段没有分离 model 代码所以多了不少,但主要还是异步回调还有错误码判断耗费太多代码。

    前端学 js 目前是唯一选择,即使用 coffee 也是基于对 js 的了解才能用好。后端我就不想用 js 了,什么用着舒服用什么,并发问题还有不少选择,Erlang 或 Go 对我吸引力还大点。

  • can't type chinese on mobile at 2013年05月15日

  • @Rei writings.io 里面按删除键的时候略卡呢? at 2013年05月15日

    自动保存问题,可以再看看 Google Doc,它也是每个输入都触发保存事件。writings.io 比它差的地方是每次都全文发送,Google 每次发送量都是固定的,writings.io 随着文字增加会越发越多,累计起来每篇文章大概 1M 的总流量差异,这对桌面网络环境来说不算什么(包月流量为啥不用),移动目前放弃。另外触发的事件次数没准 Google 还要多,因为光标上下左右移动 Google 都会保存,writings.io 只有实际输入才会保存。

    Google 耍了个小技巧,Saving -> Saved 的提示信息是延后几秒切换,所以用户看上去不会知道背后其实一直在频繁提交。我也打算这样弄,不过目前还在做别的东西。

  • @Rei writings.io 里面按删除键的时候略卡呢? at 2013年05月15日

    回退卡应该是 Undo 机制的问题,因为还没有标准的 Undo 管理器,所以自己写了一个,又因为 Mac 和 Linux 两个平台的事件触发不一致,添加了额外的检查逻辑,所以实现得比较低效。

  • 麻烦推荐一些兼容 IE 6 的前端框架 at 2013年05月14日

    根据 CNZZ 的统计数据,2012 年,IE6 在中国网民中的市场份额,从年初的 25% 降到了 16%,已经低于 IE8 的 22%,IE8 这一年基本维持稳定。

    http://www.pingwest.com/ie6-china/

    已经真到快要可以忽略的程度了吧,除非目标用户人群就在这 16% 里面。

  • 学习 RoR 这个看书顺序如何 at 2013年05月14日

    341

  • Happycasts: Ajax on Rails at 2013年05月14日

    搜了一下,下一版官方 guide 应该有 Javascript 部分了

    http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html

  • 平时写写画画的那些笔 at 2013年05月13日

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