Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
akayuki
@akayuki
会员
第 29000 位会员 / 2016-10-19

大连
1 篇帖子 / 7 条回帖
0 关注者
0 正在关注
41 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 如何 permit 一个 array of hashes at 2018年09月17日

    试一下这样

    def shipping_charge_temp_params
      params[:shipping_charge_template][:shipping_methods] = params[:shipping_methods]
      params.require(:shipping_charge_template).permit(:name, :shipping_charge_method_id, shipping_methods: %I[name base_items base_price increment_items_unit increment_items_unit_price])
    end
    

    查了一下,还可以试着用 ParamsWrapper

  • [上海] SuccessFactors (an SAP Company) 招聘 Ruby 工程师 at 2018年01月25日

    在大连 SAP 这面做 PS,看这个技术要求总感觉没什么机会能够内部 transfer 到 ruby 技术岗了:(

  • [求助] 怎么用 Rails 写出选择题的试卷,Multiple choice quiz at 2017年06月04日

    用 nested form 可以实现: http://railscasts.com/episodes/196-nested-model-form-part-1 http://railscasts.com/episodes/197-nested-model-form-part-2

  • 多对多关联出现 Could not find the source association (s) 错误 at 2017年05月08日

    把 Course 代码改成之后就好了:

    class Course < ApplicationRecord
        belongs_to :teacher
        has_many   :enrollments
        has_many   :students, :through => :enrollments
    end
    

    然而这时我最开始出错时候的代码,不知道发生了什么。。

  • 送几本《RESTful Rails Development (中文版)》 at 2017年03月07日

    分母 + 1

  • The Well-Grounded Rubyist 中文版《Ruby 程序员修炼之道》已经印刷完毕,今天开始发货了。 at 2016年10月27日

    10 楼这中文反而感觉不好理解

  • [大连] 招聘 Ruby 开发工程师 3 位,大米科技 (五常大米、智慧农业、智能厨房领域) at 2016年10月26日

    感觉大连这面 ruby 相关职位招的很少呀

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