Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@kikyous
高级会员
第 2564 位会员 / 2012-06-16

[email protected]
西安
88 篇帖子 / 875 条回帖
20 关注者
0 正在关注
13 收藏
GitHub Public Repos
  • ChatGPT-Nuxt-Web 10

  • bootstrap3-sass 4

    bootstrap-sass 3 continue

  • vscode-css-action 3

    A vscode extension help editing scss/less file with color replace and px convert.

  • mitmfile.py 2

    Define and load mitmproxy config easy

  • easy_form 2

    form builder without complex dsl

  • tc-dev-enhance 1

  • vue3-ui-test 0

  • Clash.Meta 0

    A rule-based tunnel in Go.

  • inertia-rails 0

    The Rails adapter for Inertia.js.

  • deno_deploy_cors_proxy 0

    Deno Deploy CORS Proxy

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails ActiveRecord::PendingMigrationError 错误 at 2015年09月06日

    #5 楼 @736248591 coffeescript 某个版本在 win 下有问题

  • Rails ActiveRecord::PendingMigrationError 错误 at 2015年09月06日

    #3 楼 @736248591 不推荐在 win 下做 rails 开发,感觉走不远的,会遇到各种问题,建议 linux 或 mac。 你现在的这个问题就是在 win 下才会遇到的。

    把 Gemfile.lock 里的 coffee-script-source (1.9.1) 换成 coffee-script-source (1.8.0),然后重新 bundle install

    参考 https://ruby-china.org/topics/24343

  • Rails ActiveRecord::PendingMigrationError 错误 at 2015年09月06日

    rake db:reset 注意这会清空你项目数据库然后重新建立

  • 请教下一般这种情况下大家会如何组织代码 at 2015年09月02日

    https://github.com/elabs/pundit#scopes

  • Rails 串接 Ruby 爬虫 at 2015年08月22日

    #1 楼 @ywjno 我们公司做了好几个这样的东西了,用 sidekiq 来后台运行爬虫

  • Ruby 2.2.2 的关于 min 的一个 bug at 2015年08月21日

    额

  • 一个好玩的东西 Share your terminal as a web application at 2015年08月20日

    #1 楼 @lgn21st 嗯,用的 websocket

  • Bootstrap 4 alpha 发布 at 2015年08月20日

    #1 楼 @lgn21st 不知道他们为什么要切换到 sass

  • Ruby 2.2.2 使用中的问题 at 2015年08月18日

    #2 楼 @ssqq 用这个查文档吧 http://devdocs.io/ruby/

  • 前方有坑,请注意。。。 蛋疼的 first_or_create at 2015年08月16日

    醉了,你这种不接受的态度不适合用框架。 自己从零开始写比较好。

    还有 lz 对callback的理解也异乎常人

  • 经过近一个月的学习,我把博客用 Rails 重写了,你们有什么想问的 at 2015年08月14日

    #21 楼 @keepeye 全文搜索用 https://github.com/elastic/elasticsearch-rails

  • 经过近一个月的学习,我把博客用 Rails 重写了,你们有什么想问的 at 2015年08月14日

    lz 能不能测试一下用两个不同的框架后博客首页的性能?

  • 求排列组合有没有简便的方法? at 2015年08月13日
    (1..12).inject([]){|s,i| s + (1..12).to_a.combination(i).select{|a| a.inject(&:+) == 12 }}
    => [[12], [1, 11], [2, 10], [3, 9], [4, 8], [5, 7], [1, 2, 9], [1, 3, 8], [1, 4, 7], [1, 5, 6], [2, 3, 7], [2, 4, 6], [3, 4, 5], [1, 2, 3, 6], [1, 2, 4, 5]]
    

    无残留版

  • 求排列组合有没有简便的方法? at 2015年08月13日
    (1..12).map{|i| (1..12).to_a.combination(i).select{|a| a.inject(&:+) == 12 } }
    => [[[12]], [[1, 11], [2, 10], [3, 9], [4, 8], [5, 7]], [[1, 2, 9], [1, 3, 8], [1, 4, 7], [1, 5, 6], [2, 3, 7], [2, 4, 6], [3, 4, 5]], [[1, 2, 3, 6], [1, 2, 4, 5]], [], [], [], [], [], [], [], []]
    
  • 求排列组合有没有简便的方法? at 2015年08月13日

    你这样的算法只能算出 n 个 1 相加的结果吧

  • 去掉 turbolinks 没问题吧?它导致我编辑器加载不出来 at 2015年08月12日

    去掉没问题

  • Rails 到底该选择什么 server at 2015年08月12日

    #35 楼 @poshboytl :plus1: 我也用的 passenger,很不错,简单省心

  • 征集大家意见,关于回帖用树形方式展示,类似 HackerNews at 2015年08月11日

    可以考虑做一个用户设置,喜欢的可以自己打开

  • 征集大家意见,关于回帖用树形方式展示,类似 HackerNews at 2015年08月11日

    :plus1:

  • 我们为什么会选择 Golang at 2015年08月10日

    nodejs 呢?

  • [上海张江] 微客来高薪诚聘 Ruby 精英 at 2015年08月06日

    有专门的招聘板块

  • Hash 字符串和符号做键值混合问题 at 2015年08月05日

    可以看看 HashWithIndifferentAccess,这样就不用区分了

    rgb = ActiveSupport::HashWithIndifferentAccess.new
    
    rgb[:black] = '#000000'
    rgb[:black]  # => '#000000'
    rgb['black'] # => '#000000'
    
    rgb['white'] = '#FFFFFF'
    rgb[:white]  # => '#FFFFFF'
    rgb['white'] # => '#FFFFFF'
    
  • 使用 Redis 处理 Rails Model 缓存 at 2015年07月31日

    请问 fetch_categories 方法是怎么调用的呢?

  • 关于 has_many 的用法 at 2015年07月30日

    #4 楼 @easonlovewan 如果要插入的记录不多,save 就不用优化了,因为 rails 没有提供一次插入多条记录的方法。 如果插入的数据比较多,用这个https://github.com/zdennis/activerecord-import

  • 关于 has_many 的用法 at 2015年07月30日

    不过感觉你的设计有问题

  • 关于 has_many 的用法 at 2015年07月30日
    Admin::RolePermission.where(permission_id: (per_old_id-per_new_id), role_id: params[:role_id]).destroy_all
    
  • 使用 gem ‘bootstrap-sass'后,在哪里找 bootstrap.js 文件和 less 文件? at 2015年07月17日

    https://github.com/twbs/bootstrap-sass#sass-1

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