Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
李华顺
@huacnlee
管理员
第 2 位会员 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 篇帖子 / 9058 条回帖
960 关注者
53 正在关注
105 收藏
打赏作者
GitHub Public Repos
  • autocorrect 1412

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

  • rails-settings-cached 1104

    Global settings for your Rails application.

  • rucaptcha 697

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

  • zed-theme-macos-classic 97

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

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

    macOS Classic theme for Visual Studio Code

  • zed-extension-action 19

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

  • autocorrect-action 11

    GitHub action for use AutoCorrect as lint

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 4

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

  • zed-lalrpop 3

    LALRPOP parser grammar support for Zed.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海] 薄荷科技寻找靠谱的 Rubyist at 2013年08月28日

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

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

    看 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 2013年08月28日

    wice_grid

  • 邮箱地址写错咧,悲剧~ at 2013年08月27日

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

  • 邮箱地址写错咧,悲剧~ at 2013年08月27日

    已经改了

  • 邮箱地址写错咧,悲剧~ at 2013年08月27日

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

  • 邮箱地址写错咧,悲剧~ at 2013年08月27日

    我给你改一下

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

    早换了

  • 论坛的手册好扯啊, at 2013年08月26日

    ??说的什么呀,听不懂

  • Dash 一直是免费了么? at 2013年08月26日

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

  • Dash 一直是免费了么? at 2013年08月26日

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

  • Dash 一直是免费了么? at 2013年08月26日

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

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

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

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

    看 Ruby China 是怎么用的

  • [9.16 更新两位讲师] RubyConf China 2013 讲师介绍 at 2013年08月24日

    这回搞大了!

  • 史蒂夫 鲍尔默 要下台了 at 2013年08月23日

    $MSFT 已经暴涨 8%

    哈哈哈

  • 用了 ruby-china 的源码, 怎么跟着升级 at 2013年08月23日
    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 2013年08月23日

    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 2013年08月23日

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

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at 2013年08月23日

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

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at 2013年08月23日

    session_store.rb 里面是不是有 encrypted_cookie_store ?

  • Rails 4 报错 ActionDispatch::Session::EncryptedCookieStore at 2013年08月23日

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

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

    应该是跑不起来的

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

  • unexpected INDENT 错误求破 at 2013年08月23日

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

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