Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Rei
@Rei
管理员
第 1 位会员 / 2011-10-28

[email protected]
深圳
186 篇帖子 / 9147 条回帖
730 关注者
0 正在关注
11 收藏
中下水平 Rails 程序员
打赏作者
GitHub Public Repos
  • writings 941

    [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

  • htmlrenderer 12

  • rich-text-editor 12

  • rails-chatgpt-demo 8

  • rails-app 7

    A Rails project template lets me start new projects quickly.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Awesome Rails Gems at 2020年09月07日

    顶楼说了两个话题,要分开讨论。

    1. Rails 集成式开发并不意味不用前端的库了,相反新的 Rails 集成了 webpacker,能更好的引入前端库。
    2. Ruby 已经有些年头了,通用的 gem 大家都了解得差不都了,并不是不分享。想挖掘新的 gem 可以看这里 https://www.ruby-toolbox.com/
  • 关于 Ruby Conf China 2020 网站的一些问题反馈 at 2020年09月05日

    已上传至 bilibili,审核没遇到问题。看来是我混淆了直播规则和视频投稿规则。

    https://space.bilibili.com/552654808/channel/detail?cid=147806

  • 关于 Ruby Conf China 2020 网站的一些问题反馈 at 2020年09月03日

    上几届没有放赞助商信息,其实是没空做。

    不过我看投稿规则里面是允许放商业信息的,我投一个看看。

    https://www.bilibili.com/blackboard/help.html#%E5%95%86%E4%B8%9A%E6%8E%A8%E5%B9%BF%E5%86%85%E5%AE%B9%E7%9B%B8%E5%85%B3?id=45d8422aca6c419da5328ea2dc587a71

  • 关于 Ruby Conf China 2020 网站的一些问题反馈 at 2020年09月03日

    B 站不允许赞助商展示,沟通不顺畅,目前不打算放 B 站。YouTube 是最可靠的视频存档处。

  • 如果 gem 不更新了,线上运行的相关代码出了 bug,这时正确的编码姿势是什么 at 2020年08月26日

    fork 然后提交 pr,生产环境先切到自己的 fork 版本。

  • Rails UJS + Stimulusjs + Turbolinks 5 = ❤️ at 2020年08月25日

    Stimulus 优在和服务端渲染完美配合,无论怎么插入组件只要有 data-controller 属性就会自动绑定,不用关心 js 绑定的时机。

  • Rails UJS + Stimulusjs + Turbolinks 5 = ❤️ at 2020年08月25日
    if (data["like"]) {
      this.svgTarget.classList.remove("text-gray-300");
      this.svgTarget.classList.remove("hover:text-gray-400");
      this.svgTarget.classList.add("text-yellow-300");
      this.svgTarget.classList.add("hover:text-yellow-400");
    } else {
      this.svgTarget.classList.remove("text-yellow-300");
      this.svgTarget.classList.remove("hover:text-yellow-400");
      this.svgTarget.classList.add("text-gray-300");
      this.svgTarget.classList.add("hover:text-gray-400");
    }
    

    从这里看出来 tailwind 在 js 里面调用很麻烦。如果是 BEM 风格就是

    this.svgTarget.classList.toggle("like-icon--active", data["like"])
    

    另外 tailwind 不能解决开发者设计能力的问题,要快速做原型不如用 bootstrap。

  • 公司要做招聘管理 相关的系统 参考 moka 拉钩云招聘 ruby 有类似的开源系统么 谢谢~~~ at 2020年08月24日

    不如直接去 HR 部门了解需求。

  • rails grape 实现小程序和后台接口同时提供 api at 2020年08月24日

    根本就没必要在 Rails 上加 Grape。

  • RubyConf China 2020 SSR 参会指南 at 2020年08月24日

    高清版演讲视频已上传

    https://www.youtube.com/playlist?list=PLTUHmtFhYC6jwWuTGlEnGjDsp4XkKzrvW

  • RubyConf China 2020 SSR 参会指南 at 2020年08月17日

    这个我也很迷,用自己账号看是 10 小时,用管理账号看是 2 小时,匿名不登陆看是 10 小时。所以只看见两小时的可以试试浏览器匿名模式。

  • 感觉 Ruby 缺少显式创建引用的功能,有没有大佬可以给核心开发者建议添加一下 at 2020年08月15日

    https://bugs.ruby-lang.org/ 是开放的,不需要大佬,先搜索有没有同类 issus,再阅读提交指引,然后提交特性请求,core team 会回复。

  • RubyConf China 2020 SSR 参会指南 at 2020年08月13日

    RubyConf China 2020 Gitter 聊天群现已开放 https://gitter.im/rubychina/rubyconfchina2020

    将用作会议讨论/提问/抽奖,欢迎加入。

  • Rails 什么时候出个去前端的轻量级框架 at 2020年08月01日

    Rails 工具指什么?

  • Rails 什么时候出个去前端的轻量级框架 at 2020年08月01日

    6.1 有 minimal 参数:

    rails new cool_app --minimal 
    

    https://github.com/rails/rails/pull/39282

    如果一条条参数敲其实现在也可以去掉不用的组件。

  • rails-guides 中文 wiki 无法打开 at 2020年07月30日

    我测试不翻也打不开,它托管在 github pages 上,目前没有计划迁出。

    能打开 github 的话可以在这里打包下载整个网站到本地看

    https://github.com/ruby-china/rails-guides/tree/gh-pages

  • Ruby 标准库中缺少 rbtree, 严重影响开箱即用,谁能帮忙给核心开发者提议加入 rbtree。 at 2020年07月30日

    python 是 9 楼提的。

    进标准库要有取舍,目前来看引入统一的异步调度机制对 Ruby 更重要(在做了)。

  • Ruby 标准库中缺少 rbtree, 严重影响开箱即用,谁能帮忙给核心开发者提议加入 rbtree。 at 2020年07月29日

    python 标准库有红黑树?

  • Ruby 标准库中缺少 rbtree, 严重影响开箱即用,谁能帮忙给核心开发者提议加入 rbtree。 at 2020年07月28日

    用 gem 不好吗?进标准库就说明需要 core team 维护,然而 core team 没那么多时间,现在还一直把一部分标准库迁移到 gem 呢。

  • 关于 Homeland Docker 部署有个建议 at 2020年07月28日

    docker compose 不需要把 redis 和 postgres 的端口开放,其它 service 可以通过内部网络访问这些服务,主机名就是 service 名。

    https://docs.docker.com/compose/networking/

    By default Compose sets up a single network for your app. Each container for a service joins the default network and is both reachable by other containers on that network, and discoverable by them at a hostname identical to the container name.

    默认安全对用户很重要,不是所有用户都有足够的安全知识。以前我就被 mongodb 的默认配置坑过……

  • 现在 Rails 有类似于 APIJSON 的 gem 吗? at 2020年07月26日

    GraphQL?

  • Ruby 的 bcrypt 對於文本有沒有長度限制? at 2020年07月14日

    有 72 字节限制 https://github.com/rails/rails/blob/fbe2433be6e052a1acac63c7faf287c52ed3c5ba/activemodel/lib/active_model/secure_password.rb#L7-L10

    这是算法限制。

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月14日

    这是整个 js 执行有问题了吧?打开调试器看 js 是不是报异常,有没有禁用 js?

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    看不出问题……

    在页面加这个 button,点击看看有无确认框,测试 ujs 是否有工作,浏览器 console 有无异常。

    <button type="button" data-confirm="work?">test</button>
    
  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    是的,似乎加了。

    把页面渲染的表单 html 贴上来看看。

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日
    Processing by Hr::WorkerFieldsController#create as HTML
    

    显示提交的还是 HTML,js 里面有没有加入 ujs?

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    日志贴全

  • [新手求助] 才开始学比较吃力,有没有适合巩固的 Ruby 题库 at 2020年07月13日

    https://leetcode.com/ 支持 Ruby,但这都是算法,做应用需要实践,楼主没有说自己要往哪个方向。

  • Rails 没落了吗?为什么我们的社区如此冷清? at 2020年07月08日

    我以前维护过只为移动端提供 API 的 Rails 应用。

    https://guides.rubyonrails.org/api_app.html

  • 使用 Capistrano 部署,时间超长,原因是什么? at 2020年07月08日

    静态文件用 CDN 处理。Web server 提供静态文件,CDN 回源的时候缓存。

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