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

[email protected]
深圳
188 Topics / 9160 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**

  • geeknote 34

  • asciidoctor-htmlbook 31

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

  • material-ui 17

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 关于布署时的一些疑惑 at January 10, 2015
    1. http://guides.ruby-china.org/security.html#%E4%BC%9A%E8%AF%9D%E5%AD%98%E5%82%A8

    2. http://guides.ruby-china.org/asset_pipeline.html#%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83

  • 求帮忙看看这句代码的逻辑是什么? at January 10, 2015

    给原作者发邮件啊。

  • @Rei 能分享下你那些经典配图吗 :) at January 09, 2015

    IT 相关 http://devopsreactions.tumblr.com/

    别的例如想起某个电影场景都是 google 的。

  • Ruby 有《Ruby 元编程》,Javascript 有什么? at January 09, 2015

    #2 楼 @answer 是的。

  • Ruby 有《Ruby 元编程》,Javascript 有什么? at January 09, 2015

    大概是《JavaScript: The Good Parts》。

  • [已解决] link_to 背后有很多黑魔法 at January 09, 2015

    CGI: Ruby's Bare Metal http://www.mikeperham.com/2015/01/05/cgi-rubys-bare-metal/

    这个很适合楼主。

  • backup + whenever 进行 mysql 数据备份,自动备份内容为空白,手动备份正常 at January 09, 2015

    在 Linux 里,切换用户的目的是使用 正确的用户 而不是一股脑用 root。

    我猜测这里切换 root 用户需要密码,但是 crontab 是非交互的无法输入密码,所以静默退出。你退出再登录,然后手动执行备份,需要密码吗?

  • 可以稍微吐槽下那些云部署服务嘛 at January 09, 2015
    $ heroku ps:scale web=2
    

    这个用 VPS 怎么实现?

  • 为何淘宝有那么多便宜 VPS 的原因? at January 09, 2015

    关键词:VPS 超卖

  • 求 ruby on rails 实习岗位 at January 08, 2015

    不要把招聘贴都顶起来,如果你对招聘感兴趣就按帖子提供的联系方式联系对方。

  • 阅读 Sinatra 源码的感悟 (水平不高,纯属纪录) at January 06, 2015

    有一种工具叫做 Blog。

  • 大家都用的什么云? at January 06, 2015

    第二个问题: https://gorails.com/

  • Redis MySQL 混用的最佳实践 at January 05, 2015

    优化之前测一下数据,真的成为瓶颈了吗?

  • 请教一个 Rails cache 的问题 at January 05, 2015

    Rails.cache 的意义是统一缓存接口,换缓存后端的时候不用改代码,所以你放到 Rails.cache 就行了。

    不过你没说出大文件的内容是什么,具体情况具体分析,也许放到常量就够了。

  • 请教一个 Rails cache 的问题 at January 05, 2015

    没有面包就吃蛋糕啊,没有 Redis 就用 Memcached 啊。

  • 能否推荐一款支持 Markdown + wysiwyg 的编辑器 at January 04, 2015

    markdown 本身就不是 wysiwyg,两个条件冲突。

    你是指预览吗?

  • 刚在 Mac 上装 Ruby brew install ruby 出现错误 删除安装目录后无法安装! at January 04, 2015

    #2 楼 @knewmei 这跳跃度好大,安装完 Ruby 怎么就 localhost:3000 了?

  • 孔夫子说过这个话么? at January 01, 2015

    这不是我说的。 —— 白岩松

  • 开发 app 的后台,用 ror 或者 Sinatra 能否合适? at December 31, 2014

    On the other hand, many people like to recommend projects they haven’t used in any depth, because the idea of knowing what the next big thing is feels good. The result is that people choose frameworks largely based on advice from people who don’t know what they’re talking about.

    http://larseidnes.com/2014/11/05/angularjs-the-bad-parts/

  • InfluxDB + Grafana 快速搭建自己的 NewRelic,分析应用运行情况 at December 30, 2014

    https://www.skylight.io/ 免费额度很适合小网站。

  • 为什么 render 回来的 HTML 中 JS 不重新加载? at December 27, 2014

    Turbolinks

  • 我轻断食的经历 at December 27, 2014

    我想起乔布斯的素食信仰,后来……

  • 请问这段代码什么意思? at December 27, 2014

    查 git log,给提交者发邮件问他什么这样写。

  • [已解] 一个关于 Rails 的路由问题,求解 at December 27, 2014

    #7 楼 @perish news 用作新闻的时候单复数同名,或者说没有单数。所以复数 helper 加 index 和单数 helper 区分开。如果 Rails 无法推测资源名的复数形式也会加上 index。

  • 这里的 Router 应该怎么写? at December 27, 2014
    # routes.rb
    resources :articles do
      collection do
        get 'node/:slug', to: 'articles#node', as: :node
      end
    end
    
    # articles_controller.rb
    def node
      @node = Node.find_by(slug: params[:slug])
      @articles = @node.articles.paignate(page: params[:page])
      render :index
    end
    
  • Routes 里面 API 加版本号的问题 at December 26, 2014

    #5 楼 @phaibin 我参考的是 github,直接 v1 v2 v3。

    要小版本那就起个 V1D1 这样的模块名了,scope 有 module path as 之类的参数,看组合一下哪个符合你的要求。

    http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Scoping.html#method-i-scope

  • Routes 里面 API 加版本号的问题 at December 26, 2014

    #3 楼 @phaibin 很少见给 API 加小版本,会折腾烦开发者。

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