Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
云莉
@chenyunli
高级会员
第 28476 位会员 / 2016-09-11

北京
7 篇帖子 / 69 条回帖
48 关注者
7 正在关注
3 收藏
GitHub Public Repos
  • family_financial_manag... 1

    Family Financial Management

  • jdstore 1

  • algorithm007-class01 1

  • parking-app 0

    rails rspec

  • ajax-posting-app 0

  • authentication_api 0

    authentication api

  • go_hello1 0

  • xxx 0

  • api_exercise 0

  • first_app 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海] 第一财经数据 - 扩招 Ruby 开发工程师一枚 + 高级前端工程师一枚【已招满】 at 2020年04月26日

    支持远程吗

  • 『编程项目赚了两千万』,这些人的良心不会痛吗? at 2017年12月30日

    谢谢关心。技术成长先不说。就觉得哪里都乱哄哄的。哪里都不太想发言。都是基于自己的认知和利益做出自己的独断,我觉得什么都不是事实,社会是复杂的。

  • 怎样在 RSpec 测试正在运行的时候,列出已经出错的 error messages,而不用等到所有的测试都运行完成 at 2017年11月20日

    好的,我试试

  • 怎样在 RSpec 测试正在运行的时候,列出已经出错的 error messages,而不用等到所有的测试都运行完成 at 2017年11月16日

    额额

  • 怎样在 RSpec 测试正在运行的时候,列出已经出错的 error messages,而不用等到所有的测试都运行完成 at 2017年11月16日

    额,好吧

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月30日

    belongs_to :imageable, -> { unscope(:where) }, polymorphic: true 这个我查出来的不对。imageable_id 和 imageable 不对应。

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    知道啦

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    试了,你说的这个可以实现

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    明白,谢谢啦

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    嗯嗯,试一试,谢谢😄 😁

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    如果不用覆盖解决,这块还有好的解决方法不?因为不想带着 default_scope。

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    default_scope 的话,用 picture.imageable 不会忽略 default_scope 中的条件

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    default_scope,不是 scope,文章里面写错了

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    写的是 default_scope , 我改一下,写错了

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    picture.imageable 这样就查出来了啊

  • Rails 中 polymorphic 的使用, 以及获取 unscoped 对象属性 at 2017年10月26日

    用 picture.imageable 会带上 product 的 scope,也就是查出 published 的 product,所以这边覆盖掉是想查出 unscoped 的 product,你说的 includes 会有问题,但是我们这边暂时没涉及。有什么更好的方案么,欢迎指教 😁 ?

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