Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
河西
@yfscret
Member
NO. 33370 / 2017-10-27

8 Topics / 98 Replies
3 Followers
4 Following
1 Favorites
持之以恒、坚持学习
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 求助,ActionCable 如何作为 WebSocket 客户端来使用? at May 15, 2019

    我给你发的就是客户端 不是服务器端 我自己有用过

  • 求助,ActionCable 如何作为 WebSocket 客户端来使用? at May 15, 2019

    直接用 websocket client 不行吗?把下下来的 js 直接扔到项目中,然后在 js.erb 或者 html.erb 里用就可以呀,你看看https://github.com/sockjs/sockjs-client是不是你需要的

  • 新手记录一次自动部署过程!mina+puma+nginx at May 09, 2019

    不明白你的意思

  • 有没有类似《深入浅出 rails》这样比较有趣的 rails 入门书记,求推荐 at May 07, 2019

    有趣在哪里,能分想一下吗

  • 去他的 RTFM, 只要 @kayakjiang 我有问必答,绝不敷衍 at April 29, 2019

    牛逼!

  • Mac 环境下安装 mysql2 报错 at April 26, 2019

    缺少两个支持 mysql2 的 gem 你网上搜你这个错误 答案很多

  • Ruby 中的 Time 有没有什么方法舍弃掉分钟和秒 at April 16, 2019

    Time.now.strftime('%Y-%m-%d %H:00:00') 这个符合你的要求吗

  • gem install mysql2 报错:Make sure that `gem install mysql2 -v '0.3.20' --source 'https://rubygems.org/'` succeeds before bundling. at April 14, 2019

    brew install mysql 再根据提示 gem install mysql2 -v '0.3.20' --source 'https://gems.ruby-china.com' 然后再 bundle install 试试,如果不行,建议在 mysql 官网直接下载 mysql 然后再 bundle 应该就可以了

  • 执行 bundle install 报错: Could not load OpenSSL. at April 13, 2019

    gemfile 里 source 'https://gems.ruby-china.com' 改成 http 我的是可以的

  • 具有关联对象的 ActiveRecord 对象在创建的时候会发起相关关联表的查询 at April 11, 2019

    怎么搞定的 说一下呀 还有比较奇怪 title_id 和 partner_id 是哪里来的 不应该是 user_id 吗

  • 安装 ckeditor 富文档,报错:couldn't find file 'ckeditor/init' with type 'application/javascript' at April 09, 2019

    这个可能是你 js 没加载上?这个我就不好说了,打开 f12 看看是不是 js 加载错误或者其他什么问题

  • Rails + MySQL 的个人练手项目,请大家多多指点! at April 09, 2019

    不错

  • 《Ruby 基础教程 第 5 版》P96,代码清单 8.6 中运行出现 bug at April 07, 2019

    定义的 def swap(other) 这个 other 是参数,你在用 Hello.swap 时候应该加上参数 Hello.swap(这里是参数)

  • 这样的公司我应该去干吗 at April 06, 2019

    找拒绝的谈谈 没啥不合适的 谈的妥就跳 谈不妥就先待着伺机而动

  • 安装 ckeditor 富文档,报错:couldn't find file 'ckeditor/init' with type 'application/javascript' at March 28, 2019

    你这个我刚才测试了一下,有两种解决方法(还有一种最简单的方法,gem 'ckeditor', '4.2.4' ): 1.你应该在 app/assets/javascripts 目录下新建个 ckeditor 目录,然后里头放上 config.js 文件,在 application.js 中加入 //= require ckeditor/init,这个文件在https://github.com/galetahub/ckeditor里有,

    然后你这个

    Rails.application.config.assets.precompile += %w[ckeditor/config.js]
    

    放 ckeditor/*也行放 ckeditor/config.js 也行或者不放也行 2.上面那个是老版本时候的教程,现在我看https://github.com/galetahub/ckeditor把教程换了,在你操作的基础上需要

    rails generate ckeditor:install
    

    会生产 config/initializers/ckeditor.rb,然后你需要

    Ckeditor.setup do |config|
      # //cdn.ckeditor.com/<version.number>/<distribution>/ckeditor.js
      config.cdn_url = "//cdn.ckeditor.com/4.6.1/basic/ckeditor.js"
    end
    

    然后在你的 new 或者 application.html.erb 页面加上

    <% = javascript_include_tag Ckeditor.cdn_url %>
    

    成功:

    你按我的试试 有问题再问我

  • Ruby on Rails 教程 - 第一章最后一节关于 Heroku 的部署无法完成 at March 28, 2019

    你 heroku create 是不是没有报任何错误?你再重新做一遍 最后试试 git push heroku master 不要加-u 试试

  • Rails 5.2.2 jQuery 用不了? at March 14, 2019

    5.2 没有默认安装 jquery gem 你需要安装 gem 然后在 application.js 里引用才可以用

  • rails admin 怎么修改创建界面? at March 05, 2019

    你查查 wiki 吧 我记得创建界面会把关联的 model 用 select 都列出来

  • rails admin 怎么修改创建界面? at March 05, 2019

    是不是这个意思呢?item.category.category_attributess 这不就列出来 item 对应的所有类别属性了吗

  • [长沙] 国防科技大学招聘 ruby 工程师一名 at March 02, 2019

    这是传说中的文职人员吗

  • [郑州] 河南百川环境科技有限公司招聘 Rails/ 全栈 工程师 (过年回河南的求约) at February 27, 2019

    期待郑州公司越来越多 ruby 环境越来越好

  • 为什么 ruby -v 与 ruby list 枚举不一样呢? at February 27, 2019

    我猜是你 ruby 2.5 没有用 rvm 安装 可能用的 sudo apt-get install ruby 直接安装的

  • 如何解决 ruby: No such file or directory?代码输入正确,并且文件确实保存在 c 盘 at February 02, 2019

    你得在 cmd 中先进到该文件所在文件夹,然后再 ruby xx.rb

  • [求助] rails 项目背景图片:background:url () 在阿里云服务器上不能显示出来? at January 27, 2019

    1 楼正解,有个东西叫 asset pipline 你查一下就知道了

  • 别用 raw 和 html_safe at August 07, 2018

    用 sanitize 不能显示富文本编辑器中插入的图片,raw 可以,怎么办?

  • 求助:rails 中使用 kindeditor 富文本编辑器网络上传没问题,本地上传错误 at August 06, 2018

    兄弟 你推荐的这个 wysiwyg 编辑器感觉特别好 符合我的心意 问一下免费能用不

  • 求助:rails 中使用 kindeditor 富文本编辑器网络上传没问题,本地上传错误 at August 05, 2018

    这个能传图片也能传视频 比较符合我的要求 我需要能传图片和视频的 你有更好的推荐吗

  • 新手求《Rails 5 敏捷开发中文版》,英文的看不懂,已崩溃 at June 07, 2018

    感觉不错 社区里有好多人推荐 英文版看不懂

  • 送书 ---《Rails 5 敏捷开发》 at June 07, 2018

    我想要这本书,有没有看过的旧的就行

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