Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@reyesyang
高级会员
第 25 位会员 / 2011-11-01

北京
6 篇帖子 / 328 条回帖
4 关注者
1 正在关注
533 收藏
Pragmatic Programmer
GitHub Public Repos
  • blog-on-rails 1

    A blog application build with rubyonrails

  • wechat-universal-flatpak 0

    Flatpak 打包微信 Linux Universal 版

  • gnome-shell-extension-... 0

    Adds KStatusNotifierItem support to the Shell

  • xvm 0

    Version Management for more tools

  • LG-ultrafine-brightness 0

    A tool to adjust LG Ultrafine Series Monitor without Bootcamp in Linux and Windows.

  • playground 0

  • parser-study 0

  • spring-boot 0

    Spring Boot

  • clash-core 0

    backup of clash core

  • reyesyang.github.io-so... 0

    Blog source code based on Jekyll 3

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails 中的时区及时间问题 at 2013年12月16日

    个人还是倾向于数据库存 UTC,其他的失去按照 timezone 转化后显示就可以了

  • Rails 中的时区及时间问题 at 2013年12月16日

    #2 楼 @ywjno 应用服务器的时间

  • ruby 时间区间判断 at 2013年12月03日

    同 3 楼,可以使用 between? http://ruby-doc.org/core-2.0.0/Comparable.html#method-i-between-3F

  • Rails 中 Symbol 的用法? at 2013年11月27日

    看了官方的文档 Getting Started with Rails 后,应该就会理解了。

  • Jekyll • 简单的静态博客网站 [中文站] at 2013年11月18日

    +1

  • 松本行弘的新书《关于 mRuby 的一切》 at 2013年11月13日

    👍

  • Google 403!! at 2013年11月07日

    是因为 goagent 的原因,修复方法可参照 goagent 项目首页说明

  • 「疑问」Rails 4 关联用户 id 的购物车实现 at 2013年11月06日
    def current_cart
      current_user.cart || current_user.create_cart
    end
    

    感觉 CartController 用不到。

  • iteye 怎么了 at 2013年10月29日

    已经修复了

  • iteye 怎么了 at 2013年10月29日

    呃……好像所有二级域名都到这了,已经通知运维的同事了

  • More Git and GitHub Secrets by Zach Holman at 2013年10月29日

    Keynote https://speakerdeck.com/holman/more-git-and-github-secrets

  • Ruby Conf China 2013 After Party 小结 at 2013年10月29日

    辛苦本次大会的组织者和志愿者,赞最后的图,来年再见。

  • 有多少人觉得自己越来越不会写字了啊? at 2013年10月27日

    提笔忘字很严重,手机上都尽量用笔划输入法,电脑上想学五笔,都想了两年多了,还没入门。

  • [广州] 招聘 Ruby 程序员 at 2013年10月24日

    酱油党路过

  • [Blog] 分享一下执行'村上春树'作息方法的心得 at 2013年10月10日

    blog 的 title 有意思

  • Time Capsule 使用一个月感受 at 2013年09月26日

    围观画家!

  • 关于 Ruby & Rails 风格指南 at 2013年09月17日

    正在拜读

  • 咱们社区有多少是球迷的?露个脸吧 at 2013年09月15日

    98 世界杯熏陶起来的球迷,第一个粉的俱乐部是 A 米,国家队是英格兰(小贝粉)。不过现在只要是精彩比赛都看,倾向性不很强。 虽然被国足虐心无数,但仍然坚持尽量一场不落。 现在和公司同时基本每周都还能踢 2 小时 7 人制。露脸完毕~

  • [已解决] 关于博客 slug 的问题 at 2013年09月15日

    可以考虑使用重写 Post 的 to_param 方法

    def to_param
      "#{id}-#{slug}"
    end
    

    这样显示的及满足了自定义 url 的需求,其余的逻辑代码基本也不需要变动。

    Post.find(params[:id])
    

    这样的方法对于有 slug 和没有 slug 的 Post 都有效。可参考:https://gist.github.com/agnellvj/1209733

  • 数学英语一定要从小抓起 at 2013年09月07日

    呵呵

  • Ruby2.0 后 yield 只能接收一个参数了么? at 2013年09月07日
    def math(a, b)
      yield(a, b)
    end
    
    def teach_math(x, y, &operation) 
      puts "let's do the math" 
      puts math(x, y, &operation) 
    end
    
    teach_math(2,3) { | c, d | c*d } 
    

    你的代码里有全角的逗号,括号。试试上面的在你那能运行不

  • 看 V2EX 上分享的一个网站,被瞬间亮瞎了有木有!!! at 2013年09月03日

    有才啊

  • Sinatra 2.0 会使用 Go 重写?! at 2013年08月30日

    #18 楼 @catherinenunu 想招聘发招聘贴就行,你这么到处回复是在挑战论坛管理人员的耐性。

  • 右下角 go_top 按钮无法显示的问题 at 2013年08月29日

    那确实奇怪,我的在非登陆状态下是有显示的。

  • 右下角 go_top 按钮无法显示的问题 at 2013年08月29日

    会不会是页面太短,本身不需要显示 go_top 按钮?

  • [已解决] spork 和 guard 都安装了用各种出错 ,在项目中怎样删除? at 2013年08月29日

    1.保留 spec_helper.rb 中

    Spork.prefork do end

    之间的代码,其余删除。

    2.删除 Guardfile 文件 3.移除相关 gem,应该就可以了

  • Rails 3 项目加载 module 失败 at 2013年08月20日

    有关,Rails 的 Convention over configuration 很大程度上依赖于文件名和内部 module 名称的统一。

  • 大神帮忙看下 debug 的问题 at 2013年08月16日

    ruby-debug19 已经不维护了,换 debugger 试试。具体参考http://stackoverflow.com/questions/1083451/debugging-in-ruby-1-9 发帖代码格式最好能注意下,这个看着比较费劲。

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