Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
qinfanpeng
@qinfanpeng
高级会员
第 3790 位会员 / 2012-09-27

金数据(https://jinshuju.net/)
成都
55 篇帖子 / 572 条回帖
38 关注者
32 正在关注
34 收藏
GitHub Public Repos
  • echart_subway_demo 0

  • subway_demo 0

  • spike-mysql 0

    spike insert 1000w data to mysql

  • merchin_learning_in_ac... 0

    merchin_learning_in_action paractice

  • qinfanpeng.github.io 0

  • gold-miner 0

    掘金翻译计划,翻译掘金上优质的英文文章

  • tooltipster 0

    A jQuery tooltip plugin

  • bootstrapx-clickover 0

    Bootstrap Extension for Click managed popovers

  • english_usage 0

  • decorator_pattern_shape 0

    Demo for decorator pattern

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 感觉 Node.js 也是 MongoDB 的命,忽悠一帮小青年 at 2015年12月10日

    @xiaoronglv 说的好!

  • 关于 Ruby 文档中 JSON 模块中方法的疑惑 at 2015年12月10日

    看不懂你的描述,且连接也打不开。

  • Rails SQL 查询语句不会立即执行? at 2015年12月09日

    #1 楼 @nowherekai +1

  • 获取 Sublime 的命令名称 at 2015年12月09日

    +1

  • Rails 连接不同数据库的问题 at 2015年12月09日

    没看出你的写法有啥问题,不过 Post.xxx 去哪儿查应该是受 database.yml 里的配置影响。

  • collection_select 的用法 at 2015年12月09日

    具体可以参考文档 http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html

  • Ruby 微信开发群 at 2015年12月08日

    顺便也建议让组内的人入一下。

  • Ruby 微信开发群 at 2015年12月08日

    +1

  • Rails 中控制器中怎么使用 sti? 求大神指教 at 2015年12月08日

    KeyWordLists::BrandKeyWordList.create!(brand: brand, store: store_2, value_cn: '耐克', value_cn: '耐克',value_en: 'nike')你这个写法有感觉比较怪。若真要往BrandKeyWordList插入数据,就用BrandKeyWordList.cretate!就可以了,更新、删除都是类似的BrandKeyWordList.update, BrandKeyWordList.delete; 若还有另外xxWordList继承自KeyWordLists,类似地用xxWordList去操作,Rails 会自动为你维护一个 type 字段吧。

  • 用 where 查找出来的类型为 ActiveRecord::Relation,但需要 model 实例,求帮助 at 2015年12月08日

    find_by是一个,或 nil.

  • 用 where 查找出来的类型为 ActiveRecord::Relation,但需要 model 实例,求帮助 at 2015年12月07日

    如果你确定需要找的是单条记录的话,用 find_* 吧;where 返回的是 ActiveRecord::Relation,是 lazy 的,以便后面继续跟条件之类的。

  • Rails 5 什么时候出? at 2015年12月07日

    +1

  • SQLite3::SQLException: no such column: name:错误 at 2015年12月06日
    t.string :c1toc2
    t.string :c3toc4
    t.string :c5toc6
    t.string :c7toc8
    t.string :c9toc10
    t.string :c11toc12  
    

    怎么这么怪,是有啥特殊意义吗?

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

    看一下你 gem 包的版本是否是较新的,搜一下网上应该很多人都遇到过这个问题。

  • 求 Markdown 工具推荐 (最好带批注 / 校对功能) at 2015年12月06日

    #3 楼 @rei 对哈,这个我怎么想到喃。谢谢哈。

  • 求 Markdown 工具推荐 (最好带批注 / 校对功能) at 2015年12月06日

    比如 Word 的的批注功能,可用于文章校对之类的。

  • Grape Get 请求有 JSON 参数,请问怎么用 CURL 去模拟测试,或者还有别的方法测试 GET API 吗? at 2015年12月06日

    @outman 这个不错,挺酷炫的。命令行是开发人员必备的吧,不弄不行。

  • Grape Get 请求有 JSON 参数,请问怎么用 CURL 去模拟测试,或者还有别的方法测试 GET API 吗? at 2015年12月06日

    要是懒得查CURL文档的话,可以试试postman,弄这些很强的。

  • Rails (3&4) 预加载 (preload) 的 3 种方式 at 2015年12月05日

    里面涉及到 SQL 的 Join 操作,补充一点: 详见:http://stackoverflow.com/questions/406294/left-join-and-left-outer-join-in-sql-server

  • [西安 / 成都] 金数据招聘 Ruby 开发人员 at 2015年12月04日

    +1,先顶一个,技术栈还有 React.js

  • 请问:Ruby China 有搜索功能吗? at 2015年12月04日

    右上角

  • Rails 缓存使用中出现的问题 touch 如何使用? at 2015年12月04日

    很高兴能帮到你。

  • Swift 开源了 at 2015年12月04日

    不错,很多新生代语言都吸收了前辈们的优点。

  • Rails 缓存使用中出现的问题 touch 如何使用? at 2015年12月04日

    看下 @drug_groups.max(&:updated_at)返回的啥?多半它有错。

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