Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Rei
@Rei
Admin
NO. 1 / 2011-10-28

[email protected]
深圳
182 Topics / 9130 Replies
727 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Hanami 的 Action 测试可以不依赖数据库 at July 03, 2017

    依赖改了依赖的测试也改了,mock 没改怎么办?测试代码也是代码,也会有 bug。

  • 只会 CRUD 的 Rails 菜鸟如何着手 Redmine 二次开发 at July 03, 2017

    Redmine 至少是个开源项目,资料比较多,如果是内部项目…

  • Hanami 的 Action 测试可以不依赖数据库 at July 02, 2017

    我没有全盘否定 mock,我会用在不方便测的地方,比如第三方服务调用。

  • Hanami 的 Action 测试可以不依赖数据库 at July 02, 2017
    1. http://lmgtfy.com/?q=activerecord+mock

    2. Dependency injection is not a virtue http://david.heinemeierhansson.com/2012/dependency-injection-is-not-a-virtue.html

    3. 用 mock 测试不执行数据库操作,真的能确认应用没有问题么?

  • 从暴力到 NAN 再到 NAPI——Node.js 原生模块开发方式变迁 at July 02, 2017

    Multi-stage builds 也许能解决这个问题 https://blog.docker.com/2017/06/announcing-docker-17-06-community-edition-ce/

    构建用大 image,生产用精简 image。

  • 以前数据备份用 backup + dropbox,现在服务器放国内,有什么新方案推荐吗? at July 01, 2017

    云平台自己的备份服务

  • 详解 Cookie 和 Session 关系和区别 at June 28, 2017

    https://ruby-china.github.io/rails-guides/action_controller_overview.html#session

  • 重新画了一下 Ruby 内部模型的类图 at June 27, 2017

    《Ruby 元编程》讲得很清楚了啊。

  • 详解 Cookie 和 Session 关系和区别 at June 26, 2017

    If you only have secret_token set, your cookies will be signed, but not encrypted. This means a user cannot alter their user_id without knowing your app's secret key, but can easily read their user_id. This was the default for Rails 3 apps.
    If you have secret_key_base set, your cookies will be encrypted. This goes a step further than signed cookies in that encrypted cookies cannot be altered or read by users. This is the default starting in Rails 4.

    http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html

  • 详解 Cookie 和 Session 关系和区别 at June 26, 2017

    Rails 现在的 cookie store 是加密的,可以放敏感信息,主要限制还是体积。

  • 详解 Cookie 和 Session 关系和区别 at June 26, 2017

    “大家都知道,Session 是存储在服务器端的,Cookie 是存储在客户端的”

    面试 Rails 职位这么回答的话,可以回家等通知了。

  • 在学习的过程中,人脑是如何工作的?读《认知心理学》所想 at June 25, 2017

    不要拿论坛当作个人笔记。

  • 求 Rails 书籍推荐和 Web 开发学习方向 at June 23, 2017

    你现在需要做。

  • local var vs accessor function 主要考量是什么? at June 23, 2017

    教条主义

  • Rails.cache.fetch 的外层方法不能有参数么?我有参数的外层方法内部的缓存都没有执行 at June 22, 2017

    内部方法是如何检测外部方法的实现的?

    楼主,我不知道怎么答你,因为问题都提错了。你应该问:

    我执行 1 的时候得到结果 X,执行 2 的时候得到结果 Y,而我预期的是 Z,为什么跟我预期的不一样。

  • Turbolinks 会导致微信网页在 iOS 上点击链接时出现 invalid signature 错误,Android 和开发者工具则正常 at June 20, 2017

    去掉 turbolinks。

  • Ruby China 社区没有看赛车的吗?DHH 所在车组拿下勒芒 24 小时全场第三! at June 19, 2017

    程序写得最好的司机,开车开得最好的程序员。

  • 前端视角下的 Ruby at June 12, 2017

    …网一卡点了三次加精

  • [杭州][9.16 - 17] RubyConf China 2017 正式宣布!征集赞助、主题分享 at June 12, 2017

    午餐是 omakase 么?

  • 用 Docker 启动 sandbox at June 11, 2017

    一般不会用这么裸的镜像做 sandbox。

  • 打开 guides.ruby-china.org 报错,咋回事啊? at June 10, 2017

    新的地址 https://ruby-china.github.io/rails-guides/

  • 打开 guides.ruby-china.org 报错,咋回事啊? at June 09, 2017

    跟主站的 HSTS 设置冲突了,先看着 https://rails.guide/

  • Rails 应用如何部署本地 Windows 上,能使用域名访问 at June 09, 2017

    Heroku 确实是最简单,但也因为太简单没有通用性,换了环境可能不懂解决问题。

    前面推荐的 gorails 教程是我看到最实用的了。

  • Ruby 开发者也有自己的 Telegram 群啦! at June 08, 2017

    用 Web 版。

  • Rails 应用如何部署本地 Windows 上,能使用域名访问 at June 07, 2017

    https://gorails.com/deploy/ubuntu/16.04

    别部署在国内。

  • 使用 docker-compose 不能生成 node_modules 目录 at June 06, 2017

    Docker compose 可以搞定开发环境。部署我还没摸索够。

  • 使用 docker-compose 不能生成 node_modules 目录 at June 05, 2017
    1. build 一次镜像安装初始依赖。
    2. 在镜像里 run 一次 npm/yarn install 更新 package,并通过 volume 同步到 host。
    3. rebuild 一次镜像把 package 安装到镜像里。

    之前给官方 Rails 文档提了个 Issue 也是这种情况 https://github.com/docker/docker.github.io/issues/3024

  • Rails 如何在 model 里建立一个验证,使得旧数据忽略这个验证,而新数据不能忽略这个验证? at June 05, 2017

    埋坑中。

  • 申请删帖 at June 04, 2017

    Ruby 解决问题的方法不止一个,方法论也不止一个。我看到不认同的方法论也就知道一下,不会一杆子打死 Ruby 或者 Rubyist。

  • 如何将当前用户的 id 插入到另外一个表的 submit_id 中并提交到数据库上 at June 03, 2017
    @bug = Bug.new(bug_params.merge(submit_person_id: current_user.id))
    
  • Prev
  • 1
  • 2
  • …
  • 48
  • 49
  • 50
  • 51
  • 52
  • …
  • 272
  • 273
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English