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 学习 at 2013年06月25日

    如果基本语法已经了解,要深入就元编程那本书。

  • 个人站点建成。。。80% at 2013年06月25日

    我推荐总是把 sanitize 放在最后一步,除了管理员添加的内容(比如广告代码)其他不要考虑用 raw 和 html_safe。

  • 和女朋友吵架的 IT 男 at 2013年06月24日

    拍照留念

  • helper 方法带参数问题 at 2013年06月24日

    #10 楼 @76521 这应该用表单,check_box 的 name 设为 ids[],作为 form 数据提交到你要的路径那里。

  • helper 方法带参数问题 at 2013年06月24日

    #8 楼 @76521 我看错了,以为你说怎么把服务端数据传到 js。

    如果你这个 id 是服务端生成的,那么为什么拿不到? 如果这个 id 是客户端生成的,那么 link_to 那行也要用 js 生成。

  • Rails gsub 的坑 at 2013年06月24日

    https://github.com/rails/rails/issues/1555

  • blank?,present? at 2013年06月24日
    # File activesupport/lib/active_support/core_ext/object/blank.rb, line 14
      def blank?
        respond_to?(:empty?) ? empty? : !self
      end
    
    # File activesupport/lib/active_support/core_ext/object/blank.rb, line 19
      def present?
        !blank?
      end
    
  • helper 方法带参数问题 at 2013年06月24日

    用 html 的 data 属性存,然后 js 取。

  • 个人站点建成。。。80% at 2013年06月23日

    #43 楼 @Ryan 你可以输入这段内容试试,不带 code block。

    <script type="text/javascript">
      alert('danger!!!');
    </script>
    
  • 个人站点建成。。。80% at 2013年06月23日

    #43 楼 @Ryan html_safe 的意思是不管内容是什么直接标记为 safe,只能用在绝对没有用户输入的内容上。

  • 个人站点建成。。。80% at 2013年06月23日

    #40 楼 @Ryan 不是真加了吧,对用户输入调用 html_safe 会造成安全漏洞。

  • 个人站点建成。。。80% at 2013年06月22日

    #36 楼 @karmue sanitize http://apidock.com/rails/ActionView/Helpers/SanitizeHelper/sanitize

  • rails 上自动抓取新闻信息放到网页上上该怎么实现呢 at 2013年06月22日

    用系统的 cron https://github.com/javan/whenever

  • 发现没?周末发帖率超级低 at 2013年06月22日

  • 发现没?周末发帖率超级低 at 2013年06月22日

    上班都不工作刷论坛

  • Daniel Lv 明天是否有喜事呀 at 2013年06月21日

    恭喜!

  • 假如是你,你会选择 (招) 王垠这样的人么? at 2013年06月21日

    他看了公司的代码之后,发现几个很好的点子,马上“学了过来”,不单是免费的,期间公司还付他工资。然后他说要做个同类产品开源,法律部门不找他找谁。

    简单说就是“你的就是我的,我的还是我的”,还敢请他的公司肯定没看到这篇博客,而且他很精明的删掉了。

  • ror 项目 nginx 部署 at 2013年06月19日

    你要把域名指向你的虚拟机,不知道你的虚拟机有没有公网 IP 并且你拥有 rakeexample.com 这个域名,都没有的话在 hosts 里面绑定本机 ip,比如

    # /etc/hosts
    127.0.0.1 www.rakeexample.com
    

    如果别的机子要访问这个虚拟机,都要设置 host 绑定到局域网 ip。

  • Font Awesome 在 rails 中怎么用? at 2013年06月18日

    #11 楼 @blacktulip 修正了

  • Font Awesome 在 rails 中怎么用? at 2013年06月18日

    #9 楼 @miclle 要效率干脆

    <a href="<%= some_path %>">
      <i class='icon-whatever'></i> text
    </a>
    

    我用 slim 是这样写的

    a href=(some_path)
      i.icon-whatever
      '
      | text
    
  • Font Awesome 在 rails 中怎么用? at 2013年06月18日

    http://ruby-china.org/topics/1103#reply13

  • 能谈谈你们现在的服务器环境和部署方式吗? at 2013年06月18日

    好多幼女控啊

  • 能谈谈你们现在的服务器环境和部署方式吗? at 2013年06月18日

    nginx passenger cap

  • Github 发布全新界面 —— Repository Next at 2013年06月18日

    觉得原来的好。语言成分比例没什么实际意义,重要的 URL 却放到了侧栏底部。导航放到侧栏没问题,点进去之后缩成图标就很奇怪了。总之,对可用性似乎不升反降。

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