Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
吕睿
@perky123
会员
第 23698 位会员 / 2015-11-26

北京鱼行天下网络有限公司
北京
4 篇帖子 / 17 条回帖
3 关注者
6 正在关注
49 收藏
ruby小白
GitHub Public Repos
  • vue2-elm 0

    Large single page application with 45 pages built on vue2 + vuex. 基于 vue2 + vuex 构建一个具有 45 个页面的大型...

  • node-elm 0

    Backend system based on node.js + Mongodb. 基于 node.js + Mongodb 构建的后台系统

  • perky123.github.io 0

    .

  • vueAdmin-template 0

    a vue2.0 minimal admin template http://panjiachen.github.io/vueAdmin-template

  • build-web-application-... 0

    A golang ebook intro how to build a web with golang

  • lr 0

  • flower-store 0

  • ProMyFlower 0

    Flower shop

  • ruby-protocol-buffers 0

    An implementation of Protocol Buffers for Ruby.

  • ruby_push_notifications 0

    Push to iOS with setting pem password in push file

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [北京] 途家海外事业部 招聘 Ruby 工程师 (20K-40K) at 2018年03月13日

    支持

  • 怎么在删除话题的时候关联删除话题里的资源文件? at 2017年11月23日

    photo 记 topic_id 不好记,可以考虑把 photo_ids 记在 topic 里~

  • [招聘] 大鱼旅行招聘 Ruby 工程师 15k-30k 全额五险一金 /星级大厨做饭/每年两次调薪/多薪制/晋升空间 at 2017年07月25日

    记得之前的环境就很棒,搬了办公室依旧这么棒~用的相关技术也很有吸引力😃

  • 我对教小白纸们学习 Rails 的 步骤. at 2016年11月14日

    我发现我已经是一个合格的 rails 小鲜肉了~

  • [北京] 大鱼自助游诚聘 Ruby / 数据工程师 / iOS 工程师们 at 2016年10月21日

    😄 想去。

  • 如何能够实时的对一个数据库表里的字段的改变作出响应 at 2016年03月28日

    谢谢各位

  • 如何能够实时的对一个数据库表里的字段的改变作出响应 at 2016年03月28日

    @lionzixuanyuan 谢谢,发现了使用的确实是状态机,加几个回调就可以了

  • Rails 里如何对 Time 类型做验证呢? at 2016年03月18日

    @qinfanpeng @swordray 谢谢,get 了

  • Rails 里如何对 Time 类型做验证呢? at 2016年03月18日

    @ibachue 谢谢,找到了~

  • will_paginate 分页问题,如何对数组分页 at 2016年01月14日

    #12 楼 @msg7086 嗯,是已经关联好的表,这个是 controller 里的查询语句

  • will_paginate 分页问题,如何对数组分页 at 2016年01月13日

    #9 楼 @xiaoronglv 非常感谢,确实应该完善一下表结构。一直在想怎么查询,怎么分页,忽略了这个。

  • will_paginate 分页问题,如何对数组分页 at 2016年01月13日

    #5 楼 @pathbox 分页这个不应该是每一页要多少组数据,然后会去查多少组数据么,我不是很了解,我去查查看。。

  • will_paginate 分页问题,如何对数组分页 at 2016年01月13日

    #6 楼 @msg7086 card 不是字段,也不是方法,store_card 是一个关联表,关联 store 和 card 表。 我的思路是从 store_card 里先找出来所有的当前 store 的 card_id,然后去查 card 表,然后显示所有当前 store 中 cards 的信息

    store_cards = StoreCard.where(store_id: current_member.store_id).order(id: :asc).map do |sp|
      sp.card
    end
    @store_cards = Kaminari.paginate_array(store_cards).page(params[:page]).per(10)
    

    改成了这样,map 返回的是一个数组,数组中的每一个元素是 card 表中的每一个实例。这么描述对么~谢谢。

  • will_paginate 分页问题,如何对数组分页 at 2016年01月12日

    @kai209209 谢谢,用 kaminari 这个 gem 可以了 https://github.com/amatsuda/kaminari

    @paginatable_array = Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
    

    这样,非常感谢

  • will_paginate 分页问题,如何对数组分页 at 2016年01月12日

    还是说 map 方法处理过之后返回值并不是数组。。

  • 关于在 Rails Model 中使用 Enum (枚举) 的若干总结 at 2016年01月08日

    @xworm感觉总结的棒棒的。 发现了一个小问题,在第三块代码的第五行。

    conversation.status = 1 # => "archived"

    整数型 1 对应的是 waiting 而不是 archived

  • 闯过这 54 关,点亮你的 Git 技能树 at 2015年12月31日

    刚刚接触 git 没多久,感觉棒棒的

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