Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Rei
@Rei
Admin
NO. 1 / 2011-10-28

[email protected]
深圳
188 Topics / 9152 Replies
730 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
GitHub Public Repos
  • writings 941

    [Closed] Source code of writings.io

  • alipay 732

    Unofficial alipay ruby gem

  • code_campo 291

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 101

    **no longer maintained**

  • asciidoctor-htmlbook 31

    Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook docu...

  • material-ui 17

  • geeknote 15

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • rails 中的 mail 视图里怎么调用自定义的 helper? at December 23, 2014

    #3 楼 @baypm2014 Mailer 需要的变量都用参数传进去。

  • rails 中的 mail 视图里怎么调用自定义的 helper? at December 23, 2014
    1. 你应该把错误信息发上来。
    2. 即使引入了 Helper,Mailer 环境是没有 cookies 和 session 的。
  • 工作学习时,老是玩手机咋办? at December 23, 2014

    #4 楼 @nowherekai Dota2 支持 Linux 哦!

  • rails 数据关联的问题 at December 22, 2014

    https://www.ruby-toolbox.com/categories/rails_tagging

    看源码学结构。

  • 这是咩? at December 22, 2014

    您的连接不是私密连接

    攻击者可能会试图从 3wcoffee.com 窃取您的信息(例如:密码、通讯内容或信用卡信息)。

  • Rails 4.2 发布记 at December 22, 2014

    嗷嗷!赞!

  • Rails 4.2 正式版已发布 at December 21, 2014

    #28 楼 @moliliang 多谢~

  • Rails 4.2 正式版已发布 at December 20, 2014

    https://selfstore.io/ 已升级。

  • 茶叶学院 HTTP 这本书已经翻译完毕 at December 20, 2014

    #6 楼 @happypeter OK

  • 茶叶学院 HTTP 这本书已经翻译完毕 at December 20, 2014

    #1 楼 @happypeter 收益的分成几个贡献者应该达成共识了吧?

  • 国外电商系统 跟 国内的一些差异 at December 19, 2014

    中国:老板,不开发票能不能打折?

  • unicorn.sh 问题请教 at December 17, 2014

    我写 init.d 得出的经验是不要写 init.d http://chloerei.com/2014/12/15/foreman/

    不过这不能解决楼主的问题。

  • Shopify 原理 at December 16, 2014

    #18 楼 @luffycn 如果一个用户管理多个店铺呢?

  • 如何一个 VPS 上跑多个 Rails Application at December 15, 2014

    #14 楼 @springwq a duplicate default server for 0.0.0.0:80

  • 如何一个 VPS 上跑多个 Rails Application at December 15, 2014

    #12 楼 @springwq 可以写在同一个文件,也可以分开多个。

  • 我勒个去,Matz 大叔的新语言 Streem 竟然没人讲讲! at December 15, 2014

    一年 Steam 经验。

  • 谷歌能用了! at December 15, 2014

    http://v2ex.com/go/monthly

  • gem 目录下软件删除问题 at December 15, 2014

    再试试 rvm cleanup

  • gem 目录下软件删除问题 at December 15, 2014

    为什么不用 rvm uninstall/remove?

  • 在这种出现 routes 冲突时大家会怎样做呢? at December 15, 2014

    我惯用的是 ~:username。

    我也好奇无前缀的网站要怎么解决用户名冲突:

    Github 只有不活动用户会被回收 https://help.github.com/articles/name-squatting-policy/

    Twitter: We reserve the right at all times (but will not have an obligation) to remove or refuse to distribute any Content on the Services, to suspend or terminate users, and to reclaim usernames without liability to you. https://twitter.com/tos

    Facebook: 如果您为您的帐户或主页选择了一个用户名或类似的标识符,我们将保留在适当的时候将其删除或回收的权利(例如某商标所有人投诉用户名与用户的实际名字相去甚远)。 https://www.facebook.com/legal/terms

  • 一个新轮子 at December 15, 2014

    我现在更偏向针对云储存定制写逻辑。例如 S3 直接上传,七牛的图片裁剪和多媒体支持,多后端的上传库考虑的情况太多反而有些不顺手。

  • Shopify 原理 at December 15, 2014

    就是共用一个数据库的,逻辑独立。

  • 我勒个去,Matz 大叔的新语言 Streem 竟然没人讲讲! at December 15, 2014

    https://ruby-china.org/topics/23146

  • 如何选择部署工具 Capistrano 还是 Mina ? at December 15, 2014

    进程管理我推荐用 foreman 导出系统管理配置(Ubuntu 是 Upstart)

    Managing and monitoring your Ruby application with Foreman and Upstart http://michael.vanrooijen.io/articles/2011/06/08-managing-and-monitoring-your-ruby-application-with-foreman-and-upstart/

  • 如何一个 VPS 上跑多个 Rails Application at December 15, 2014

    #6 楼 @alixiaomiao 好,加上了。

  • 如何一个 VPS 上跑多个 Rails Application at December 14, 2014

    #3 楼 @springwq 这就要用 nginx 的 upstream 了。

    upstream site-a {
      server 127.0.0.1:5000; // 假设 site-a 开了一个进程监听 5000
    }
    
    upstream site-b {
      server 127.0.0.1:6000; // 假设 site-b 开了一个进程监听 6000
    }
    
    server {
        listen 80;
        server_name site-a.com;
        root /var/www/site-a.com/current/public;
        try_files $uri/index.html $uri.html $uri @site-a;
    
        location @site-a {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
            proxy_pass http://site-a;
       }
    }
    
    server {
        listen 80;
        server_name site-b.com;
        root /var/www/site-b.com/current/public;
        try_files $uri/index.html $uri.html $uri @site-b;
    
        location @site-b {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
            proxy_pass http://site-b;
       }
    }
    

    thin 进程启动要另外管理。

  • 如何一个 VPS 上跑多个 Rails Application at December 14, 2014
    server {
        listen 80;
        server_name site-a.com;
        root /var/www/site-a.com/current/public;
        passenger_enabled on;
    }
    
    server {
        listen 80;
        server_name site-b.com;
        root /var/www/site-b.com/current/public;
        passenger_enabled on;
    }
    
  • twitter 风格好友系统中黑名单功能如何设计 at December 11, 2014

    新增一个黑名单表。

  • 北京 rubyconf 2014 的视频现在还没有放出来呀? at December 09, 2014

    以后还是自录吧。

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