Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
goss.beta
@NeptuneG
会员
第 34557 位会员 / 2018-03-14

2 篇帖子 / 3 条回帖
0 关注者
1 正在关注
1 收藏
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • ActiveRecord 优化问题 at 2020年08月27日

    是的!杠回去了!

  • ActiveRecord 优化问题 at 2020年08月25日

    先 delete_all 就东西可以 update_all 了吧

  • 如何在 ActionDispatch::IntegrationTest 中跳过 verify_authenticity_token? at 2018年04月17日

    感谢回答🙏

    在 environments/test.rb 已经加过config.action_controller.allow_forgery_protection = false 最后查了一下Testing Rails Applications — Ruby on Rails Guides,加一个xhr: true参数后 OK 了

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