Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Newell
@zlx_star
VIP
NO. 2456 / 2012-06-07

杭州
71 Topics / 836 Replies
30 Followers
18 Following
34 Favorites
Ruby, Rust, .Net, 各种脚本爱好者
GitHub Public Repos
  • API-mock-server 25

    Full-Featured API Mock Server

  • useful_article 17

    the useful article

  • Gitlab-Hound 14

    Hound for Gitlab

  • qcloud-cos-sdk 8

    Ruby SDK for Qcloud COS

  • simple_form_bootstrap3 7

    Integration simple_form with bootstrap 3

  • tabletastic 3

    A smart table builder for Rails collections

  • raml-ruby-client-gener... 1

    Auto generate Ruby Client from Raml

  • love 1

    Website for our love

  • markdown 0

    Convert Markdown to HTML, with XSS protection

  • opentracing-ruby 0

    OpenTracing API for Ruby

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 大疆发布旗舰新品 Phantom 4,三大智能亮点来了 at March 04, 2016

    最近刚发现的黑科技:http://www.magicleap.com/video/magic-leap-video-3-hd.mp4

  • 本地 ip:3000 的方式访问不了 RoR 页面? at March 04, 2016

    楼主是不是使用的 Rails 4.2 以上?https://ruby-china.org/topics/28885

  • 怎么获取对象的字面值? at March 03, 2016

    #8 楼 @rubysir 你的需求貌似就是 a.literal = 'a', b.literal = 'b' 在你调用的时候不是就是知道的吗?

  • 怎么获取对象的字面值? at March 03, 2016

    #3 楼 @rubysir 在你的这个例子里。“f" 的字面量是什么?

  • [结束] 送几本《Docker 即学即用》 at February 19, 2016

    [email protected] 凑齐九个

  • 目前 Ruby 代码维护是如何保证质量的? at February 16, 2016

    补充几个在线工具:

    • https://travis-ci.org/ 在线 CI
    • https://houndci.com/ 自动检测代码风格,基于 Github
    • https://linthub.io/ 另一个代码风格检测工具
    • https://github.com/whitesmith/rubycritic 代码质量监测和报告工具
  • 使用 Setter 方法代替 Before Validation at January 30, 2016

    #10 楼 @ericguo 好神奇,这也有 Gem 来做

  • 使用 Setter 方法代替 Before Validation at January 30, 2016

    #8 楼 @huacnlee 这样就爆炸了,不过这种写法还是不建议的

  • 使用 Setter 方法代替 Before Validation at January 29, 2016

    #3 楼 @42thcoder Rails 5 中的写法应该是这类 validation 的最佳替代方案了

  • 使用 Setter 方法代替 Before Validation at January 29, 2016

    #1 楼 @blacktulip 我也倾向于不要去覆盖 setter 方法,而且有些 Gem 会覆盖这些方法

  • 看过 yinwang 写的这篇文章, 很想了解大家怎么看的 at January 29, 2016

    世界真奇妙,总是有各种各样的人

  • 有一打《Effective Ruby》要送给你,你不要,怪我咯~ at January 28, 2016

    注册支持。ID: zlx

  • Rails 部署在云主机上,外网怎么访问呢? at January 28, 2016

    你要在 nginx 里面配置端口端口转发到本地的 3000 端口

  • 本人自行删除 at January 28, 2016

    自调用了,你用 unicorn 就可以了

  • 如何根据链接使用不同局部模板 at January 28, 2016

    仔细阅读一下官方指南:http://guides.rubyonrails.org/layouts_and_rendering.html

  • Rails 4.2 默认行为 at January 28, 2016

    #1 楼 @msg7086 #2 楼 @hz_qiuyuanxin 惭愧,之前一直在本机调试,所以没发现。

  • 在 Rails 的 action 中新建 Thread at January 27, 2016

    #11 楼 @lgn21st 正好看过这本小书,内容远比想象中多

  • 在 Rails 的 action 中新建 Thread at January 27, 2016

    手动起 Thread,管理起来困难。比如数据库连接,错误处理,重试机制等都比较难以控制。 你可以选择踩坑,但最终还是会回归到 Rails 提供的最佳实践

  • 对所有已登录的用户开放 rack-mini-profiler 统计结果 at January 26, 2016

    :plus1:

  • Rails localhost:3000 要有新的欢迎页面了 at January 26, 2016

    哦耶,你碉堡了 哦耶,你上道了。

  • config.asset.compile 设置为 false 之后,页面生成的 js 和 css 连接出错,不带有 '/assets' 前缀 at January 26, 2016

    注释掉 https://github.com/TangMonk/rails_asset_bug/blob/master/config/environments/development.rb#L38

  • PG 上线升级修好啦! at January 26, 2016

    回复的时候 JS 报错 500,但是回复内容依然成功

  • PG 上线升级修好啦! at January 26, 2016

    回复成功的动画没有啦?

  • PG 上线升级修好啦! at January 26, 2016

    @lgn21st @huacnlee 编辑回复保存的时候好像会挂掉

  • PG 上线升级修好啦! at January 26, 2016

    听说 PG 对 emoji 支持非常好,所以 😀😬😁😂😆😅😄😃😇😉😊🙂😌😋🙃😍😘😗😙😛😝😜🐶🐭🐹🐱🐰🐻🐼🐨🍏🍎🍐🍊🍇🍉🍌🍋⚽️🏀🏈⚾️🎱🏉🏐🎾🚗🚙🚌🚑🚓🏎🚕🚎⌚️📱📲💻🖱🖨🖥⌨

  • 我们将会在 2016-01-23 (本周六) 对服务器停机升级 at January 26, 2016

    打开页面慢是因为缓存都被清除了吧,很快就好了

  • Lotus 框架重命名为 Hanami 了 at January 25, 2016

  • 我们将会在 2016-01-23 (本周六) 对服务器停机升级 at January 25, 2016

    #33 楼 @lgn21st 看代码是利用了 Carrierwave 插件,这个插件会覆盖 avatar= 一系列方法,可以采用 SQL 直接复制

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