Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
qinfanpeng
@qinfanpeng
VIP
NO. 3790 / 2012-09-27

金数据(https://jinshuju.net/)
成都
55 Topics / 572 Replies
38 Followers
32 Following
34 Favorites
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 请教一下 String 的 delete 方法是怎么用啊?英文不好看不懂 at May 27, 2016

    貌似可以直接来喃:

  • [深圳] EverAnts 招聘 Ruby 工程师 (高级 / 初级 / 实习) at May 27, 2016

    感觉深圳这个地方,10k 估计找不到人吧。

  • [上海] 巧思科技诚聘后端服务工程师/架构师 at May 27, 2016

    产品和装备都比较屌的样子。

  • RSpec 的一些问题 at May 25, 2016

    记得以前有类似这样的弄法:

    it { expect(subject).to validate_presence_of :email }
    it { is_expected.to validate_presence_of :email }
    it { should validate_presence_of :email }
    
  • 遇到个很奇怪的问题 uninitialized constant RestNodeController::SysAdminLoginFilter at May 25, 2016

    记得 rails 3 都是三四年前的事情了,这 1.8 还不得八九年前的。

  • Vuejs 初试 at May 25, 2016

    不错,用起来较为舒服。

  • 在 each loop 中利用 form_for 更新个别字段出现 params missing 的问题 at May 24, 2016

    #5 楼 @qinfanpeng 😄

  • 在 each loop 中利用 form_for 更新个别字段出现 params missing 的问题 at May 24, 2016

    #2 楼 @azpokr 另外有个小建议,一般不用直接贴公司代码上来,除非是开源的,让老板看了不好。

  • 如何查看定义某个方法的类或模块 at May 22, 2016

    如果要具体看方法定义的话,可以类似下面这样:

    class A
      def foo
      end
    end
    
    file, line = A.instance_method(:foo).source_location
    # or
    file, line = A.new.method(:foo).source_location
    puts "Method foo is defined in #{file}, line #{line}"
    # => "Method foo is defined in temp.rb, line 2"
    
  • 当 public 目录下存在 index.html 时路径请求问题 at May 22, 2016

    #4 楼 @zouyu 除了先使用的 public 的问题,还有就是这样弄个它是纯静态的,不在 Rails 的控制之下。

  • module 在 controller 上使用出现错误 at May 22, 2016

    SessionsController 在 admin 目录下没?

  • 当 public 目录下存在 index.html 时路径请求问题 at May 22, 2016

    Anything in the public directory is rendered as a static asset, so no Ruby code in there.

    Instead, you should remove the index.html file in that directory, and replace it with something else within your app. For example, you can do something like this:

    # app/controllers/site_controller.rb
    class SiteController < ApplicationController
      def index
        # ...
      end
    end
    
    # config/routes.rb
    root to: 'site#index'
    
    # app/views/site/index.html.erb
    <!-- Your HTML and Ruby here -->
    This will give you the behavior you want.
    

    http://stackoverflow.com/questions/18485429/rails-use-ruby-in-public-index

  • 当 public 目录下存在 index.html 时路径请求问题 at May 21, 2016

    看下 routes 里的 root 指向哪儿,或许可解。

  • 闯过这 54 关,点亮你的 Git 技能树 (四) at May 21, 2016

    #2 楼 @seabornlee 哈哈,正好有朋友在翻译这本书,接着校对之名看看也好。

  • 闯过这 54 关,点亮你的 Git 技能树 (四) at May 20, 2016

    觉得很有必要这样系统地看下 git 知识。

  • 一次利用 byebug 和 RubyMine 刨根问底的过程 at May 19, 2016

    #1 楼 @catherine 对重构还是有一定的支持的。

  • 加载 HTML 5 <canvas> 标签的问题 at May 19, 2016

    #3 楼 @kouunn 感觉可以想办法让你的初始化代码监听 turbolink 的 page:load 事件

  • (转载) 在 Rails 中集成 Vuejs 的四种方法 at May 18, 2016

    不错。

  • [翻译] React.js 的 Rails 开发者指南 at May 18, 2016

    #12 楼 @small_fish__ 话虽如此,直接在 jsx 里手写 HTML 还是有点受不了,好在有一些 react 的 UI 组件库可以用。

  • [翻译] React.js 的 Rails 开发者指南 at May 18, 2016

    #1 楼 @sail_lee 没深入用过 react,不过有一点不大明白,麻烦解惑:Rails 的写界面的生产力是如此的高,用 React 后相当于回到原始社会,得手写 HTML 了,对此可有解决方案?

  • 看到 Ruby China 里很多西安的 Rubyist,请问在 IT 不发达地区干 Ruby 感受如何? at May 16, 2016

    #9 楼 @rubyfan1 感觉 Ruby 团队一般都以小而精著称,另外这两个团队应该不算小的了。

  • 看到 Ruby China 里很多西安的 Rubyist,请问在 IT 不发达地区干 Ruby 感受如何? at May 15, 2016

    据我所知,西安有 ThoughtWorks、金数据 这些团队在用 Ruby。

  • [写给一些还不知道的 PG 们] Array#dig, Hash#dig, OpenStruct#dig, New features in ruby 2.3 at May 12, 2016

    dig 好东西

  • 分享一个搜索、安装 gem 的 Alfred workflow,支持切换 gemset at May 12, 2016

    不错。

  • Ruby 的实例变量的 scope at May 11, 2016

    #14 楼 @small_fish__ +1

  • Ruby 的实例变量的 scope at May 11, 2016

    #6 楼 @uestc_bird 楼上几位都说的很好了。补充一点便于你理解他们的所说观点:

    class A
      @i = "hi"
      def say
        puts "#{@i}"
      end
    end
    
    # 上下两中写法几乎一样
    
    A = Class.new do 
      @i = "hi"
      def say
        puts "#{@i}"
      end
    end
    
    
  • Ruby 的实例变量的 scope at May 10, 2016

    你想问个啥?

  • Mongoid Paging and Iterating Over Large Collections at May 09, 2016

    #2 楼 @hooopo +1

  • Ransack 不支持中文选项怎么办?输出的 HTML 都是一样的,把中文直接 cut 掉了 at May 06, 2016

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