Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
吕小荣
@xiaoronglv
Admin
NO. 1638 / 2012-03-29

上海
200 Topics / 1627 Replies
237 Followers
0 Following
17 Favorites
社区清洁工
GitHub Public Repos
  • xiaoronglv.github.io 4

    Ryan's Blog

  • thoughts 1

    Engineering lessons learned: Ryan Lyu's tech blog

  • surge-rules 0

  • golang-ent-playground-... 0

    https://entgo.io/docs/getting-started

  • docs.nestjs.com 0

    The official documentation https://docs.nestjs.com 📕

  • clash-rules 0

  • chinese-independent-blogs 0

    中文独立博客列表

  • express_projects_with_... 0

    Good open source projects powered by express.js

  • xiaoronglv 0

  • CKA-Exercises 0

    Practice for the Certified Kubernetes Administrator (CKA) Exam

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [上海] 薄荷诚邀 Ruby 好手 (新传图片,薄荷 girl 向你招手,是否考虑换个不一样的环境呢) at January 05, 2015

    没有妹子的招聘贴是残缺的。

    大清早,人还没来齐,随手拍了几个妹子。 用人格保证,这些都是未婚妹子 ^_^

    行政

    测试工程师 & iOS 学徒

    UI 姐妹花

    市场

  • [上海] 薄荷诚邀 Ruby 好手 (新传图片,薄荷 girl 向你招手,是否考虑换个不一样的环境呢) at January 02, 2015

    #1 楼 @mingyuan0715

    周一上几个图。 ^_^

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

    中医是世界上最好的医学 -- 孔子

  • 我兑现了一个月前的承诺 at December 28, 2014

    楼主真男人

  • 北京-寻技术合伙人-匿名社交产品 at December 22, 2014

    secret 都快死了,你还步后尘。

  • 在某些现状上,今天的 Ruby 就如同 8 年前的 PHP at December 22, 2014

    月经贴

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

    #16 楼 @teddy_1004

    基督教中确实有禁食祷告。

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

    #3 楼 @serco

    作者把 exit code 从 2 改为 1,貌似意义不大。就是 debug 时方便一些。

  • unicorn.sh 问题请教 at December 17, 2014
    • sh 的 cd 错误是 exit code 是 2
    • bash 的 cd 错误 exit code 是 1

    这个脚本的作者通过 cd $APP_ROOT || exit 1 把错误从 2 改为 1

    荣耀归给 @zgm

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

    #6 楼 @Rei

    V2ex 居然有这种节点,笑抽了。

  • [北京] 36Kr 招聘高级 Rails 研发工程师 3 名,15K 起 at December 13, 2014

    内推,内推成功者可以获得36氪独家冠名的销售的私人服务XXOO一次。

    这招聘贴口味有点重呀...

  • 12 月 14 日 - 杭州 Ruby 活动 [已换地方] at December 11, 2014

    办公场所碉堡了。

  • 越做产品,越觉得做产品难 at December 11, 2014

    #9 楼 @Rei

    我不太赞同楼上各位的观点

    程序员做的产品都有这个特点:产品的缔造者本身就是产品的典型用户。如 Github,Stackoverflow,Basecamp,风车。

    一旦脱离这个范畴,就必须要有产品经理梳理需求。在医学、物流、自然科学、建筑、绘画等垂直领域,缺了 PD,程序员啥也做不了。

    除非它是个交叉型人才,比如 Paul Graham。

  • 目前国内以 Ruby 开发为主的有哪些公司呢? at December 11, 2014

    我所知道的上海这边的使用 Ruby,还活的不错的公司:

    1. 薄荷(我们在招人,欢迎投简历)

    2. SAP

    3. 英语流利说

    4. 大众点评

    5. Gitcafe

    6. 蝉游记

  • irb, bundle exec irb, bundle console, rails console 的区别 at December 07, 2014

    #4 楼 @yuhaidonghd

    Bundler.setup 是修改 load path Bundler.require 是 require gemfile 中的 gems

  • irb, bundle exec irb, bundle console, rails console 的区别 at December 06, 2014

    原文

    What's the Difference Between irb, bundle exec irb, bundle console, and rails console?

  • 大家都是通过什么渠道来选择 (周末) 要参加的技术活动? at December 04, 2014

    社交活动,最好适量。

    有空的话,不如静下心来读几本书。

  • [北京] 同心医疗:互联网软件开发经理 招聘 1 人 20k-30k at December 04, 2014

    首轮融了多少呀

  • 作为开发者,你喜欢 markdown 还是所见即所得的编辑器 at November 30, 2014

    Markdown

  • 为什么说 Raptor 比 Unicorn 快 4 倍,比 Puma 快 2 倍 at November 27, 2014

    通过这篇文章,学了好多 server 知识。

  • [上海] 麦田亲子游招聘 Ruby 程序员 2 名 (robbin 创业项目,亲自招募) at November 27, 2014

    跟着范凯,都是要发的节奏。 😄

  • 我承诺,2014 年 结束前开发出。。 at November 27, 2014

    楼主,你如果不写,就失信于 ruby 社区。

    以后见你发帖一次,鄙视一次。 ^_^

  • [译] 为什么我们开发的 Raptor 比 Unicorn 快 4 倍,比 Puma,Torquebox 快 2 倍 at November 18, 2014

    #22 楼 @zeeler

    看了这篇文章,了解了很多原理。

  • 进入每个页面为什么会执行两次方法 at November 18, 2014

    talk is cheap, show me the code.

  • 谁能推荐个靠谱的 DNS? at November 18, 2014

    dnspod 付费版貌似有双线的。(国外 ip 走国际,国内 ip 走国内)

  • [北京 | 西安 | 成都] 金数据招聘 Rails 开发人员 x2,Remote 友好 at November 18, 2014

    希望你对中国SaaS软件有着切实的信心,对软件提升中小微组织以及个人生产力有着发自内心的认同。我们不想把智力投入到另外一个140字的App, 或者另外一个约炮交友的软件

    赞这句话。

  • Rails 路由系统源码探索 at November 18, 2014

    先来点个赞

  • 常见的 Admin 后台是如何写的?(比如 Routes 和 Controller) at November 10, 2014

    Rails best practice 中有一个比较好的范例

    Before

    # config/routes.rb
    ActionController::Routing::Routes.draw do |map|
      map.resources :posts
      map.resources :comments
      map.logout '/logout', :controller => 'sessions', :action => 'destroy'
      map.login '/login', :controller => 'sessions', :action => 'create'
    
      map.namespace :developer do |dev|
        dev.resources :posts
        dev.resources :comments
        dev.logout '/logout', :controller => 'sessions', :action => 'destroy'
        dev.login '/login', :controller => 'sessions', :action => 'create'
      end
    
      map.namespace :admin do |admin|
        admin.resources :posts
        admin.resources :comments
        admin.logout '/logout', :controller => 'sessions', :action => 'destroy'
        admin.login '/login', :controller => 'sessions', :action => 'create'
      end
    
      map.namespace :api do |api|
        api.resources :posts
        api.resources :comments
        api.logout '/logout', :controller => 'sessions', :action => 'destroy'
        api.login '/login', :controller => 'sessions', :action => 'create'
      end
    end
    

    After

    The better solution is to split the routes into different files according namespaces.

    # config/routes.rb
    ActionController::Routing::Routes.draw do |map|
      map.resources :posts
      map.resources :comments
      map.logout '/logout', :controller => 'sessions', :action => 'destroy'
      map.login '/login', :controller => 'sessions', :action => 'create'
    end
    
    # config/routes/developer.rb
    ActionController::Routing::Routes.draw do |map|
      map.namespace :developer do |dev|
        dev.resources :posts
        dev.resources :comments
        dev.logout '/logout', :controller => 'sessions', :action => 'destroy'
        dev.login '/login', :controller => 'sessions', :action => 'create'
      end
    end
    
    # config/routes/admin.rb
    ActionController::Routing::Routes.draw do |map|
      map.namespace :admin do |admin|
        admin.resources :posts
        admin.resources :comments
        admin.logout '/logout', :controller => 'sessions', :action => 'destroy'
        admin.login '/login', :controller => 'sessions', :action => 'create'
      end
    end
    
    # config/routes/api.rb
    ActionController::Routing::Routes.draw do |map|
      map.namespace :api do |api|
        api.resources :posts
        api.resources :comments
        api.logout '/logout', :controller => 'sessions', :action => 'destroy'
        api.login '/login', :controller => 'sessions', :action => 'create'
      end
    end
    

    In Rails3, you can set the configs in config/application.rb

    config.paths.config.routes.concat Dir[Rails.root.join("config/routes/*.rb")]

    参考资料:

    http://rails-bestpractices.com/posts/73-split-route-namespaces-into-different-files

  • 常见的 Admin 后台是如何写的?(比如 Routes 和 Controller) at November 10, 2014

    我把不同职责的 route 放到不同的文件中了,然后在 config/application.rb

    config.paths.config.routes.concat Dir[Rails.root.join("config/routes/*.rb")]

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