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
  • 如何配置 Ruby 的 Web 服务器 at October 16, 2017

    不知道楼主为什么不用 Rails,如果只依靠标准库的话,WEBRick http://ruby-doc.org/stdlib-2.4.0/libdoc/webrick/rdoc/WEBrick.html

    MySQL 需要装 mysql2 https://github.com/brianmario/mysql2

  • 我想问下,API 版本从 1.0 升级到 2.0,要把 1.0 控制器里面的代码都贴到 2.0 里面吗 at October 16, 2017

    正常情况,区分 v1 v2 应该是 Api 模式有大变动。

    如果有部分变动不大,我会把代码拷贝过来,不要有依赖。

  • 怎么把几个 model 合在一起 at October 16, 2017

    那可以用片段缓存。

  • 我想问下,API 版本从 1.0 升级到 2.0,要把 1.0 控制器里面的代码都贴到 2.0 里面吗 at October 16, 2017

    路径区分版本。

  • 怎么把几个 model 合在一起 at October 16, 2017

    是的。有更新的话,也要更新 data。

  • 怎么把几个 model 合在一起 at October 15, 2017

    可以增加一张表,解决查和排序,同时储存 data 避免运算

    {
      user_id
      source_type
      source_id
      data
      created_at
      updated_at
    }
    
  • 怎么把几个 model 合在一起 at October 14, 2017

    举个现实的例子,我想不通要轮流查 a b c 的意义。

    对于如何避免重新计算 data 这一点,可以把计算结果放库里。

  • 怎么把几个 model 合在一起 at October 14, 2017

    https://ruby-china.github.io/rails-guides/active_record_querying.html#eager-loading-associations

    楼主需要补 SQL 基础知识。

  • [上海] Change 健身潮流文化社区招收 Ruby 工程师 (15-40k 十四薪) at October 13, 2017

    你是复读机么,来来去去就这一句。如果你没有其它补充,我严重质疑你发言的真实性,也会留意你在其它帖子的表现。

  • [上海] Change 健身潮流文化社区招收 Ruby 工程师 (15-40k 十四薪) at October 12, 2017

    这两件事完全没联系。

  • [上海] Change 健身潮流文化社区招收 Ruby 工程师 (15-40k 十四薪) at October 12, 2017

    为什么你觉得他是管理员?所有管理员列在这个页面 https://ruby-china.org/wiki/about

    管理员个人页面头像下方有红色“管理员”标签。

  • [深圳][已结束] 2017.10.22 深圳 Ruby 活动 at October 11, 2017

    刚好团队出去团建…

  • Ruby 2.5.0-preview1 Released at October 11, 2017

    不要简单的复制粘贴。

  • Ruby 重返前 10 名: TIOBE 10 月编程语言排行榜 at October 10, 2017

    又重返😳

  • 怎么做 Token Authentication? at October 04, 2017

    如果被爆库,大部分攻击者要的信息已经拿到了,也可以随意篡改。所以敏感信息还要加密存储。

  • 怎么做 Token Authentication? at October 04, 2017

    如果不是服务端存 token,用户解除锁定了盗用者的 token 是不是又能用了?

    锁定强制重制密码 + Token 立即失效。

  • 怎么做 Token Authentication? at October 04, 2017

    我以前试过,可以是可以,后来要做个一键撤销 token 之类的功能要和密码解绑,就不用了。

  • 怎么做 Token Authentication? at October 04, 2017

    有时需要立即过期,例如发现账号被盗用了,失效时间就不够用了。

    所以还是服务端持久化 Token 加 HTTPS 好。

  • 怎么做 Token Authentication? at October 03, 2017

    JWT 作为传输的包,验证内容还是建议用 token,不然 JWT 无法失效。

    另外我看很多 JWT 实现只有 JWS(sign)没有 JWE(encrypt),要注意是否符合自己的安全要求。


    就算有 JWE,没有 HTTPS 一样会被劫持。

  • 怎么做 Token Authentication? at October 03, 2017

    http://railscasts.com/episodes/352-securing-an-api?view=asciicast

  • 第一次使用云服务的 pg 数据库,应该如何配置呢? at October 02, 2017
    # options 1
    production:
      host: myhost
      database: somedatabase
      username: myuser
      password: mypass
    
    # options 2
    production:
      url: "postgres://myuser:mypass@myhost/somedatabase"
    
  • SendGrid 配置到怀疑人生 at September 28, 2017

    受不了模版审核。

  • SendGrid 配置到怀疑人生 at September 28, 2017

    顶楼啥细节都没说,我也只好把经验埋在心里。

  • Asset Pipeline 里,JS 代码注释不能有中文 (会编译报错) 大家都是用啥方案解决的? at September 28, 2017

    23333 任何问题转前后端分离

  • 请教大家一个关于 Ruby 的 Array 的问题? at September 26, 2017

    值
    引用
    引用

  • 如何在 active_admin 做自己的权限系统 ? at September 26, 2017

    http://railscasts.com/episodes/385-authorization-from-scratch-part-1?view=asciicast

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