Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
李华顺
@huacnlee
Admin
NO. 2 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 Topics / 9060 Replies
961 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1449

    A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuation...

  • rails-settings-cached 1110

    Global settings for your Rails application.

  • rucaptcha 696

    Captcha Gem for Rails, which generates captcha image by Rust.

  • zed-theme-macos-classic 102

    A macOS native style theme for Zed, let it same like native app in macOS.

  • zed-extension-action 23

    GitHub Action for automatically bump Zed Extensions version after a release.

  • vscode-macos-classic.t... 22

    macOS Classic theme for Visual Studio Code

  • autocorrect-action 12

    GitHub action for use AutoCorrect as lint

  • color-lsp 8

    A document color language server.

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 6

    Dock layout UI component for GPUI, that extracted from Zed project.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [上海] 薄荷科技寻找靠谱的 Rubyist at August 28, 2013

    再好的别墅也是人家的...只能流口水啊,不过在这里办公确实会很爽

  • 求助,Capistrano 部署到服务器上时 assets 文件不全 at August 28, 2013

    看 Ruby China 的配置,那种单独引入的 css, js 文件需要增加到 config.assets.precompile 里面

    application.rb

    module RubyChina
      class Application < Rails::Application
        ....
        config.assets.precompile += %w(application.css app.js topics.css topics.js window.css front.css cpanel.css
            users.css pages.css pages.js notes.css notes.js 
            mobile.css home.css)
      end
    end
    
  • Rails 如何实现表格排序、搜索等功能 at August 28, 2013

    wice_grid

  • 邮箱地址写错咧,悲剧~ at August 27, 2013

    #6 楼 @Rei #5 楼 @ywencn #7 楼 @miclle 被你们发现了我的马甲...

  • 邮箱地址写错咧,悲剧~ at August 27, 2013

    已经改了

  • 邮箱地址写错咧,悲剧~ at August 27, 2013

    把你正确的邮箱地址告诉我

  • 邮箱地址写错咧,悲剧~ at August 27, 2013

    我给你改一下

  • Rails secret key 泄漏了,是不是逆向计算任意用户 Cookie at August 27, 2013

    早换了

  • 论坛的手册好扯啊, at August 26, 2013

    ??说的什么呀,听不懂

  • Dash 一直是免费了么? at August 26, 2013

    集成 Xcode 和 TextMate 的查询插件很好用

  • Dash 一直是免费了么? at August 26, 2013

    #12 楼 @jasli2 是每次呀,有的时候生甚至 Tab 切换回来,还得等那几秒

  • Dash 一直是免费了么? at August 26, 2013

    免费的根本没法用,每次查询要等 7s 以上

  • 发现今天 Ruby-China 点击链接的时候,右上角会转圈圈 at August 24, 2013

    #38 楼 @aptx4869 浏览器桌面通知?

  • 看了大半天 Mongoid 网上的教程,还是不知道怎么用 at August 24, 2013

    看 Ruby China 是怎么用的

  • [9.16 更新两位讲师] RubyConf China 2013 讲师介绍 at August 24, 2013

    这回搞大了!

  • 史蒂夫 鲍尔默 要下台了 at August 23, 2013

    $MSFT 已经暴涨 8%

    哈哈哈

  • 用了 ruby-china 的源码, 怎么跟着升级 at August 23, 2013
    location /avatar {
      proxy_redirect     off;
      proxy_set_header   Host $host;
      proxy_set_header   X-Forwarded-Host $host;
      proxy_set_header   X-Forwarded-Server $host;
      proxy_set_header   X-Real-IP        $remote_addr;
      proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
      proxy_pass         http://gravatar.com;
      proxy_cache ruby_china;
      proxy_cache_valid  200 302  300d;
      proxy_cache_valid  404 502  5m;
      expires           7d;
    
      proxy_intercept_errors on;
      error_page 404 = /avatar.png;
    }
    
  • Active Record query 返回值问题 at August 23, 2013

    ActiveRecord::Relation 带来的好处是可以连续 . . . 比如:

    User.where(:age => 20).where(:name => "xx").order("id desc").skip(100).limit(50)
    
    # 或者复杂的组合查询可以先放到变量里面
    @query = User.where(:age => 20)
    
    if params[:name]
      @query = @query.where(:name => params[:name])
    end
    
    if params[:sort]
      @query = @query.order("id desc")
    end
    
    @users = @query.limit(10) # 直到这个时候,SQL 的查询都还是没有发出去的,直到遇到 to_a 的方法调用才会将前面所有的组合起来成一个 SQL 来执行
    
  • 好奇 ruby-china 的 SEO 咋做得这么好呢 at August 23, 2013

    一楼正解,所有搞其他那些小动作都是没意思的,内容才是重要的

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at August 23, 2013

    http://gorails.com/blog/uninitialized-constant-actiondispatch-session-encryptedcookiestore

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at August 23, 2013

    session_store.rb 里面是不是有 encrypted_cookie_store ?

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at August 23, 2013

    这应该和 Capistrano 无关,你试试在你本地执行

    $ RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile
    

    应该是跑不起来的

    你把 config/environments/production.rb 发出来看看

  • unexpected INDENT 错误求破 at August 23, 2013

    #7 楼 @neo unexpected INDENT 都提示了是缩进的问题呀

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