Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
云莉
@chenyunli
VIP
NO. 28476 / 2016-09-11

北京
7 Topics / 69 Replies
48 Followers
7 Following
3 Favorites
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [上海] 第一财经数据 - 扩招 Ruby 开发工程师一枚 + 高级前端工程师一枚【已招满】 at April 26, 2020

    支持远程吗

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

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

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

    好的,我试试

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

    额额

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

    额,好吧

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

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

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

    知道啦

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

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

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

    明白,谢谢啦

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

    嗯嗯,试一试,谢谢😄 😁

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

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

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

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

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

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

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

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

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

    picture.imageable 这样就查出来了啊

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

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

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