Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
tomatopotato
@Loyea
Member
NO. 32410 / 2017-07-26

1 Topics / 3 Replies
0 Followers
0 Following
0 Favorites
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [求助] ElasticSearch 无法搜索 at January 09, 2018

    有的 不过我发现这个并不影响 as_indexed_json 的输出结果


    最后看了下 elasticsearch-rails 的 wiki,发现了另外一种写as_indexed_json的方式,算是解决了这个问题

    def as_indexed_json(options={})
        {
            "appraise" => appraise
        }
      end
    

    就是手动指定输出的字段

  • 关于 Rails 外键的问题 at August 16, 2017

    这问题看完我还以为是我问的。。。。新手遇到场景一模一样

  • 如何根据点击量生成排行榜,并显示上升和下降的名次 at August 04, 2017

    ModelName.order("FieldName DESC/ASC")

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