Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Ban
@SunA0
会员
第 37130 位会员 / 2019-03-09

[email protected]
16 篇帖子 / 94 条回帖
2 关注者
1 正在关注
4 收藏
trouble maker
GitHub Public Repos
  • k8s-files 0

    yml dict

  • suna0.github.io 0

    run run run

  • dentaku 0

    math and logic formula parser and evaluator

  • check_996 0

    Help your check repo 996 or not 😄

  • monkey-playground 0

    https://sunao.fun/monkey-playground/

  • monkey 0

    simple language interpreter

  • grpc-go 0

    阅读代码用

  • containers-the-hard-way 0

    Learning about containers and how they work by creating them the hard way

  • act 0

    Run your GitHub Actions locally 🚀

  • prest-serverless 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 关于用户界面的问题 at 2020年09月04日

    refactoringui 例子还不错 正在读 还是有点启发的

  • 如何把页面做的,让用户体验感好 (?) at 2020年08月22日

    去取取经💡

  • 【水贴】脱离 Ruby 这些年 at 2020年08月22日

    可惜了小城市 ruby 岗位还是太少,跳槽都只能往外跳

  • 人生的一个小奇迹再次覆灭。。。 at 2020年08月22日

    半夜品味了一番

  • 公司有地毯,对码农还是很重要的 at 2020年08月21日

    公司太安静了,觉得有些压抑

  • 变量写成中文是不是巨蠢的行为 at 2020年07月31日

    那我心安理得的写中文了😅

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月14日

    谢谢帮助!

    点开这个按钮 就不行

    <button class="btn btn btn-primary btn-xs" title="新增" type="button" onclick="window.location='/hr/worker_fields/new';"><i class="fa fa-plus"></i>&nbsp;新增</button>
    

    正常写 link 就可以

    <a href="/hr/worker_fields/new">new</a>
    

    还挺神奇

  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    谢谢

    <form class="navbar-left" id="new_hr_worker_field" max_columns="2" action="/hr/worker_fields" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="authenticity_token" value="fTZiZhfkuxYwMC7+vUeOM0dcEuPslmTLHbJD5k/mJJn/2pTWa4gpClxEATxQsX/hh+Xh+lbfqvuuSEKoDxfrfg==">
      <input id="tag_name" class="form-control" placeholder="标签名" type="text" name="hr_worker_field[field_name]">
      <input type="submit" name="commit" value="创建" class="btn btn-primary " data-disable-with="创建">
    </form>
    
  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    请问是这个? application.js

    //= require jquery2
    //= require jquery_ujs
    //= require jquery-ui
    
  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    谢谢帮忙;但是不太行报了新错

    Processing by Hr::WorkerFieldsController#create as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"fTZiZhfkuxYwMC7+vUeOM0dcEuPslmTLHbJD5k/mJJn/2pTWa4gpClxEATxQsX/hh+Xh+lbfqvuuSEKoDxfrfg==", "hr_worker_field"=>{"field_name"=>"xxx"}}
      Fdn::User Load (0.6ms)  SELECT  `fdn_users`.* FROM `fdn_users` WHERE `fdn_users`.`id` = 1 LIMIT 1
      ↳ app/helpers/fdn/user_sessions_helper.rb:22
      Fdn::UserInformation Load (0.8ms)  SELECT `fdn_user_informations`.* FROM `fdn_user_informations` WHERE `fdn_user_informations`.`user_id` = 1
      ↳ app/helpers/fdn/user_sessions_helper.rb:22
       (0.2ms)  BEGIN
      ↳ app/controllers/hr/worker_fields_controller.rb:17
      Hr::WorkerField Create (0.4ms)  INSERT INTO `hr_worker_fields` (`field_name`, `created_at`, `updated_at`) VALUES ('xxx', '2020-07-13 19:28:25', '2020-07-13 19:28:25')
      ↳ app/controllers/hr/worker_fields_controller.rb:17
       (3.6ms)  COMMIT
      ↳ app/controllers/hr/worker_fields_controller.rb:17
    Completed 500  in 41ms (ActiveRecord: 5.6ms)
    
    
    
    ActionController::UnknownFormat - Hr::WorkerFieldsController#create is missing a template for this request format and variant.
    
    request.formats: ["text/html"]
    request.variant: []:
    
    Started POST "/__better_errors/fd9a32653680483b/variables" for ::1 at 2020-07-13 19:28:25 +0800
    
    
  • 在 create 动作中 调用 js 失效 ,表单写了 remote:true 但反映问题 ActionController::UnknownFormat at 2020年07月13日

    感谢提醒,刚重新编辑了一下

  • 如何判断生产环境下 Nginx 是否正常工作 at 2020年05月12日
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
    tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      309/systemd-resolve 
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      837/sshd            
    tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      12800/nginx: master 
    tcp        0      0 0.0.0.0:34893           0.0.0.0:*               LISTEN      19509/Passenger App 
    
    

    意思就是用在了 3000 端口上?

  • 如何判断生产环境下 Nginx 是否正常工作 at 2020年05月08日

    Unit nginx.service could not be found.那看来是没成功;谢谢

  • 如何同时创建两个表的记录 at 2019年08月07日

    明白了!

  • 如何同时创建两个表的记录 at 2019年08月07日

    是 想问表单怎么写

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