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

chloerei@gmail.com
深圳
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 用 Rails 的 Helper raw 显示数据,破坏了 html 格式怎么办? at 2014年08月22日
    require 'nokogiri'
    doc = Nokogiri::HTML::DocumentFragment.parse '<p>text></p></table>'
    doc.to_s
    # => "<p>text&gt;</p>"
    

    另外,raw 是个安全漏洞 https://ruby-china.org/topics/16633

  • Rails 4.2.0 beta1: Active Job, Deliver Later, Adequate Record, Web Console at 2014年08月22日

    #15 楼 @huobazi beta 不跟,现在主要精力不在这个项目。

  • pg Ruby 1.9 & 2.0 书中关于多个参数的 blocks 调用的例子出错 at 2014年08月22日

  • pg Ruby 1.9 & 2.0 书中关于多个参数的 blocks 调用的例子出错 at 2014年08月22日
    1. yield 后面的空格去掉
    2. who_says_what 里面的奇怪符号去掉
  • [北京] Melotic 找 Ruby 工程师 & 前端工程师 at 2014年08月21日

    #1 楼 @ginchenorlee 无关。

  • Ruby hash 不同表示方法的区别 at 2014年08月18日

    key: value 格式的 key 只能是 symbol。

  • 如何判断一个开源项目使用 Gem 的版本号? at 2014年08月18日

    Gemfile.lock

  • 求问大神 小额支付有什么好的解决方案 at 2014年08月18日

    5 毛是哪里看到的?我查只是 1.2% 啊? https://b.alipay.com/order/productDetail.htm?productId=2012111200373121&tabId=3#ps-tabinfo-hash

  • rails 怎么在上传过程中限制文件大小,总不能传完了再去判断吧? at 2014年08月18日

    不用 js,那客户端限制我不说了。

    前端服务器例如 nginx 有上传数据限制,默认是 1M 还是多少的,设置一下,大了还传不上。

  • 目前国内 Rails 开发者的上升路线是怎样的? at 2014年08月18日

    这个问题要猎头的猎头、出任 CTO、迎娶百富美的 @lgn21st 才能回答。

  • rails server 运行时,sass-rails 有实现在文件被修改后自动编译生成 css 吗? at 2014年08月17日

    #4 楼 @zicjin 如果 public 文件夹里面有对应文件,请求就不进入 Rails 应用了,直接返回文件。

  • rails server 运行时,sass-rails 有实现在文件被修改后自动编译生成 css 吗? at 2014年08月17日

    #2 楼 @zicjin

    1. 删除 public/assets
    2. 删除 tmp/cache/assets
    3. 重启
  • 请问 Heroku 的免费计划能承载什么规模的应用呢 at 2014年08月17日

    #7 楼 @n00b1 现在免费不用信用卡了,看能不能删去?

  • 请问 Heroku 的免费计划能承载什么规模的应用呢 at 2014年08月17日

    #5 楼 @swachian 我也想搞个玩玩,例如用 heroku button 一键搭建论坛,但是习惯了用异步任务发邮件,开个 worker 就 35 刀起跳了。


    https://github.com/brandonhilkert/sucker_punch 这个异步任务组件好像不用另开 worker。

  • 请问 Heroku 的免费计划能承载什么规模的应用呢 at 2014年08月17日

    #2 楼 @swachian pg 免费档是 1w 行,有点紧。

  • Rails Turbolinks 如何解析 body 里面的外部 javascript 和 stylesheet at 2014年08月17日

    把 simditor 的 js 和 css 编译到 application,然后在那个位置的 js:

    javascript:
      new Simditor({
        textarea: $('#comment_body')
      });
    

    Basecamp 是打包到一起的。

  • 请问 Heroku 的免费计划能承载什么规模的应用呢 at 2014年08月17日

    15 人肯定行啦。

  • 2014 Rails Hosting survey results at 2014年08月15日

    #18 楼 @bydmm 如果跟 EC2 差不多那没问题,不被墙就行了,以前有过被墙干扰。想想这个价格也不是不能接收,装系统太烦了。

  • 2014 Rails Hosting survey results at 2014年08月15日

    #14 楼 @bydmm 国内访问速度可以吗?

  • Font Awesome 4.1.0 加了几个 SNS 分享可用的图标 at 2014年08月14日

    #15 楼 @southwolf 先看看贡献须知吧,我没对这个项目 PR 过。

  • 2014 Rails Hosting survey results at 2014年08月14日

    #8 楼 @bydmm 感觉 heroku 比 VPS 贵了好几倍啊,例如 redis 100M $10/mo,VPS 是共享主机内存,Linode 1G $10/mo,考虑到价格我一直没认真尝试 heroku。

  • 继 Lotus 之后,又来一个新轮子 Roda at 2014年08月14日

    #19 楼 @hardywu https://github.com/emberjs/ember-rails

  • [已解决] rake test 不能 load test 目录下的 **_test.rb 文件 at 2014年08月13日

    #6 楼 @zgm Ruby 1.9 引入 minitest 替换 test::unit,现在的 test::unit 是 minitest 的包装,所以这取决于 Ruby 版本。

  • 如何介绍 Ruby on Rails? at 2014年08月13日

    #6 楼 @Iacob 如果用 Twitter 做例需要回答为什么后来转 Scala 了,是不是 Ruby on Rails 性能不好?

  • [已解决] rake test 不能 load test 目录下的 **_test.rb 文件 at 2014年08月13日

    ……Rails 默认就是 minitest,去掉 rspec 和 minitest 的 gem。

  • 如何介绍 Ruby on Rails? at 2014年08月13日

    http://rubyonrails.org/

    楼主如果没有自己的主见,我很怕会搞砸。

  • 关联对象查询优化 at 2014年08月12日

    Weishoporder.joins(weimember: :weisite).where('weisites.user_id = ?', current_user.id)

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