Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
superiorlu
@rubyist518
会员
第 17209 位会员 / 2015-02-07

[email protected]
华兴资本-星起
北京
4 篇帖子 / 79 条回帖
4 关注者
1 正在关注
16 收藏
GitHub Public Repos
  • AITreasureBox 588

    🤖 Collect practical AI repos, tools, websites, papers and tutorials on AI. 实用的AI百宝箱 💎

  • jsonapi-swagger 59

    Create a JSONAPI Swagger.

  • local-http2 2

  • morse_code 2

    Simple Morse Code Encode and Decode Tool

  • bjt 2

    bjt(bundle jump to), a quick navigation tool for bundle packages like njt

  • vision 2

    自动跳转微信的“继续访问”页面以及其竞品页面的Chrome插件

  • superiorlu.github.io 0

  • TaskingAI 0

    The open source platform for AI-native application development.

  • commerce 0

    Next.js Commerce

  • Flowise 0

    Drag & drop UI to build your customized LLM flow

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Effective Ruby 出中文版了 at 2016年01月22日

    @stone 京东 40 吧 http://item.jd.com/11846515.html

  • RubyCritic-一款不错的检测代码质量工具 at 2016年01月18日

    @hemslo ok~

  • RubyCritic-一款不错的检测代码质量工具 at 2016年01月18日

    @hooopo 对的,不错的建议! 知其然,知其所以然了。学习好的代码,多从作者的角度去思考,就像@xiaoronglv 那篇《How Minitest works》,把这些能运用到平时,对自己就是一个很好的提升。

  • RubyCritic-一款不错的检测代码质量工具 at 2016年01月18日

    @hemslo 恩 这个工具很综合了,在 mac 上试装了一下,遇到'rcov' 安装问题,你是怎么解决的呢❓

  • RubyCritic-一款不错的检测代码质量工具 at 2016年01月15日

    @markgeek 恩呢 可以说codeclimate是rubycritic的 web 版了 😏

  • 基于 deep learning 的古体诗生成机器人 at 2016年01月15日

    很赞 👍

  • 你应该使用的 5 种 Ruby 方法 at 2016年01月09日

    @adamshen :plus1:

  • 你应该使用的 5 种 Ruby 方法 at 2016年01月09日

    @adamshen 额 原文里已经说到了应用场景 -> https://blog.engineyard.com/2015/five-ruby-methods-you-should-be-using 👀

  • 你应该使用的 5 种 Ruby 方法 at 2016年01月08日

    @w7938940 try是active_support扩展的方法http://api.rubyonrails.org/classes/Object.html#method-i-try 也是用一次就会上瘾的那种。😅

  • 全新的站内搜索上线 at 2016年01月08日

    :plus1:

  • 解决大家看讲稿的问题 ---再度萌芽的讲稿网 at 2015年12月28日

    👍 ppt 中的链接可以点击的话就完美了 😄

  • Rails-5-0-beta1 at 2015年12月22日

    目前mongoid 5.0.1还不支持rails 5.0.0.beta1。

  • Rails-5-0-beta1 at 2015年12月19日

    👏

  • Rails 创建项目的时候出错了,之前还好好的,哪位大虾帮帮? at 2015年12月17日

    防墙可用: gem intall bundler -s https://ruby.taobao.org 😄

  • Ruby 的 DSL 怎么学习, 有什么资料,书籍,或项目可以推荐的吗?? at 2015年12月17日

    http://stackoverflow.com/questions/4936146/tutorials-for-writing-dsl-in-ruby https://robots.thoughtbot.com/writing-a-domain-specific-language-in-ruby

  • 无人知晓的 GIL at 2015年12月16日

    👍

  • Ruby 利用 sqlanywhere 连接 MySQL at 2015年12月16日

    @jpwangluo 没用过sybase,这方面没有好的建议,有人使用 FreeTDS + TinyTDS + Sequel 连接。 原文:http://aikuapp.com/questions/1971143/sybase-from-ruby-jdbc-connection-to-sybase 仅供参考。

  • Ruby 利用 sqlanywhere 连接 MySQL at 2015年12月15日

    @jpwangluo 上面那位仁兄使用了dbi-mysql的 gem 包,如果不是必须,不要用SQLAnywhere了,用的人估计不多,遇到问题时会比较痛苦 😪

  • 关于扩展字段的设计问题 at 2015年12月14日

    可以根据的不同的类型建立不同表。

  • 测试的主要作用和必要体现在哪? at 2015年12月14日

    偶觉得测试是为代码服务

    1. 测试很重要,重构,快速迭代,持续集成.. 这些好处随着项目的增大,会发现之前在测试花费的时间是值得
      1. 不要为了测试而测试,保证关键的业务和功能模块的单元测试和集成测试即可,写代码前多考虑一下代码的结构和复用也是很重要的。
  • Rails 连接不同数据库的问题 at 2015年12月09日

    rails 中连接不同的数据库可以这么操作:

    1. 配置 database.yml yml pg_test: adapter: postgresql encoding: unicode database: pg_test pool: 5 username: root password: 2.定义一个连接此库的abstract class: ruby class Pg::Base < ActiveRecord::Base self.abstract_class = true self.establish_connection "pg_#{Rails.env}" end 3.连接pg的 model 直接继承就可以了 ruby class Pg::PgGroupRecord < Pg::Base end
  • 本人自行删除 at 2015年12月08日

    @flowerwrong 配置文件中的rails_pid最好这样:

    rails_pid = Process.pid
    

    😄

  • 新手求教,异常:ActiveRecord::ConnectionNotEstablished: No connection pool for User at 2015年12月07日

    @steve 可以在你的config.ru添加

    ActiveRecord::Base.establish_connection YAML::load(File.open('config/database.yml'))[ENV["RACK_ENV"]]
    

    之所以 migration 可以连接数据库这是你的 gem active_record_migrations所为。 grape的用法可以看一下官方的例子 或者 robbin 大神的例子。

  • Nginx + Passenger 部署 Rails 应用时使用 request_store 遇到的坑,求高手指导 at 2015年12月04日

    貌似你的gem 'request_store'没有加载,看一下你的Gemfile与运行环境

  • 求助:MySQL 表的编码变为 latin1_swedish_ci ,在 cap 部署后 (closed) at 2015年11月30日

    原因:貌似应该是发布的服务器环境所致,可以看看这个http://www.extendi.it/blog/2013/12/18/10-utf-8-tables-on-aws-rds-and-rails-migrations 解决方法:直接在 migration 中添加 options,就可以

    create_table : infomations, options: 'COLLATE=utf8_unicode_ci' do |t|
    
  • Rails 怎么提交表单,怎么传递 URI? at 2015年11月29日

    用 rails 的话,先看一下文档http://guides.ruby-china.org/form_helpers.html

  • [青岛] Sellegit 招聘 Ruby 工程师 1-2 名 [20K 起][L1 签] at 2015年11月28日

    东营人,看到青岛招 Ruby 的,好激动

  • windows 下如何使用 nginx+puma 手动部署 rails 程序 at 2015年11月26日

    没有在 windows 下部署过,

    • 安装:可以参考一下 nginx for Windows, Installing puma on windows
    • 配置:二者使用 tcp 通信。
  • 上一页
  • 1
  • 2
  • 3
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English