Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
DC
@dccmmtop
会员
第 31504 位会员 / 2017-05-17

[email protected]
14 篇帖子 / 47 条回帖
2 关注者
6 正在关注
47 收藏
五花马,千金裘,呼儿将出换美酒。
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 阿里云 nginx+pasenger+rails+capistrano 部署成功,但页面访问报错 at 2019年03月23日

    有没有正确配置 /etc/nginx/passenger.conf 下 ruby 路径,

    passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini; 
    passenger_ruby /home/xxxx/.rbenv/shims/ruby;
    
  • 有趣地寻找 Ruby 方法 at 2019年01月21日

    脑洞不错,确实没有什么用。。。

  • Ruby China 7 岁生日快乐 at 2018年10月28日

    🍻 🍻 🎂 🎂

  • 数组分页,除了 Kaminari.paginate_array 有更好的方法吗? at 2018年08月28日

    http://jameshuynh.com/rails/paginate/find_by_sql/2017/09/30/how-to-paginate-rails-find-by-sql-result/

  • [郑州][10.13-14] Ruby Summit China 2018 报名 [早鸟票继续开放,更有晚宴开放],《日程更新》13日 晚所有参会人员送 3 个月的 RubyMine 试用 license at 2018年08月23日

    ok

  • 这个注册用户头像自动生成,有 ruby 版本的? at 2018年08月17日

    letter_avatar

    如图:

  • Ruby China 搜索之后可不可以加个按时间排序 at 2018年08月17日

    有自己的搜索功能呀, homeland 源码:

    def index
      params[:q] ||= ""
    
      search_modules = [Topic, User]
      search_modules << Page if Setting.has_module?(:wiki)
      search_params = {
        query: {
          simple_query_string: {
            query: params[:q],
            default_operator: "AND",
            minimum_should_match: "70%",
            fields: %w(title body name login)
          }
        },
        highlight: {
          pre_tags: ["[h]"],
          post_tags: ["[/h]"],
          fields: { title: {}, body: {}, name: {}, login: {} }
        }
      }
      @result = Elasticsearch::Model.search(search_params, search_modules).page(params[:page])
    end
    
  • [郑州][10.13-14] Ruby Summit China 2018 报名 [早鸟票继续开放,更有晚宴开放],《日程更新》13日 晚所有参会人员送 3 个月的 RubyMine 试用 license at 2018年08月13日

    有没有确定在郑州的哪个地方举办?门票大约多少?

  • 郑州 Rubyist 还有多少? at 2018年05月29日

    yes

  • 郑州 Rubyist 还有多少? at 2018年05月27日

    +1

  • rails 中怎么更具不同的 layout 加载不同的样式? at 2018年05月25日
    <!DOCTYPE html>
    <html>
    <head>
      <title>DcForum</title>
      <%= csrf_meta_tags %>
    
      <%= stylesheet_link_tag    '你想引入的css文件', media: 'all', 'data-turbolinks-track': 'reload' %>
      <%= javascript_include_tag '你想引入的js文件', 'data-turbolinks-track': 'reload' %>
    </head>
    <body>
      <%= yield %>
    </body>
    </html>
    
    
  • Passenger + Nginx + Capistrano Could not find rake-12.3.1 at 2018年05月25日

    多谢,已经解决了。是 passenger 的配置问题。

  • Passenger + Nginx + Capistrano Could not find rake-12.3.1 at 2018年05月24日

    ruby 用的是 2.5.0。该怎么办?

  • Passenger/Nginx/Ubuntu 快速部署 Rails 3.1 at 2018年05月10日

    时隔六年,这篇文章对我仍然很有用!🤔

  • else if and elsif 问题 at 2018年03月19日

    yes,但是我有一点不明白 else if是错误的语法吗? 下面是可以的。

    def tt(n)
      if n == 1
        p 1 
      else 
        if n == 2
          p  2 
        end
      elsif n== 3
        p 3 
      end 
    end
    
  • 用 Ruby 写一个没有什么用的爬虫 at 2018年01月08日

    😈 👏

  • 当年 GitHub 送你们的 3 万元还在吗? at 2018年01月02日

    哈哈哈

  • 「特别活动」UCloud 圣诞奇幻夜之谁偷走了来自 1434年 的蛋糕? at 2017年12月16日

    厉害了

  • 「特别活动」UCloud 圣诞奇幻夜之谁偷走了来自 1434年 的蛋糕? at 2017年12月16日

    哇塞

  • Simple Rails history pattern (ActiveRecord) at 2017年12月09日

    不错

  • 更改配置文件后 (application.yml) 需重启电脑才能生效? at 2017年11月15日

    我刚刚试了一下,真的管用,,谢谢,解决了困扰好久的问题

  • 更改配置文件后 (application.yml) 需重启电脑才能生效? at 2017年11月15日

    这个我还真没有试过

  • 部署失败-- bundle: command not found at 2017年11月14日

    好的,谢谢

  • 部署失败-- bundle: command not found at 2017年11月14日

    恩恩,谢谢,我试试

  • ElasticSearch 使用总结 at 2017年11月14日

    💯 受用了

  • [已解决] 升级到 Mina 1.0 后遇到的奇怪问题 at 2017年11月14日
    command %{touch "fetch(:deploy_to)/shared/#{file}"}
    
  • [北京] 云币网 招聘 Ruby x N 15K-100K [通往财富自由之路] at 2017年09月15日

    云币是不是要挂了?

  • 使用 ElasticsSearch 出现 404 的问题 at 2017年08月06日

    如何添加索引呢?

  • 使用 ElasticsSearch 出现 404 的问题 at 2017年08月06日

    需要为 elasticsearch 配置什么吗

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