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
  • 关于 Rails 业务逻辑是放在 Model 里面还是 Controller 里面呢? at May 21, 2014

    #19 楼 @egg_show

    http://railscasts.com/episodes/398-service-objects

    这个资料要付费的。囧。

  • 怎样成为一个优秀的初级开发者 at May 20, 2014

    转行半年了,非常享受做程序员的每一天。

  • 在百度输入几个字,就出来一堆的下拉条,这是什么技术 at May 20, 2014

    舌头。。。

  • 学习编程没有捷径,需要的是热情与毅力 [抛砖引玉,小秀成果][5/20 小小更新一个图] at May 19, 2014

    好好学习,天天向上。

  • ruby-china 网站一直没有样式 at May 19, 2014

    浙江联通也有问题。

  • 关于 Rails 业务逻辑是放在 Model 里面还是 Controller 里面呢? at May 17, 2014

    跨 Model 的复杂逻辑,我现在都放到 Service 对象中了。

  • ActiveRecord 组合查询 at May 14, 2014

    Ransack +1

  • 买什么车? at May 12, 2014

    特斯拉

  • 功能新调整,关于招聘的 at May 11, 2014

    每天看你们调侃那些猎头,也是一个乐趣。 😄

  • [上海] [2014年5月13日] 周中聚会 at May 08, 2014

    顶光明。

  • Webrick 源码阅读笔记 at May 06, 2014

    真不错。

  • 求问,这个图片里的眼镜是啥? at May 05, 2014

    干嘛用的?

  • <Ruby 元编程>思维导图 2 (对象模型) at May 03, 2014

    真不错。

  • 又一坑技术人的 at April 26, 2014

    #6 楼 @blacktulip

    你的意思是,股份才是王道?

  • 又一坑技术人的 at April 26, 2014

    楼主弟兄,对不住。

    刚看到消息,caoz 确实被坑了。我操,这年头友谊不值钱吗?

    蔡文胜为了点破钱,真的啥事都能干出来。以后哪个创业者还敢要他的臭钱?

  • 又一坑技术人的 at April 26, 2014

    谁会相信连头像都不上传的人散布的谣言。

    好绕。

  • [上海][2014年4月27日] 2014 年 4 月 周末聚会 (需报名) at April 26, 2014

    :plus1:

  • Sidekiq 异常的监控 at April 25, 2014

    #1 楼 @huacnlee 谢谢华顺。

  • 为什么 Ruby China 论坛上一直让大家不让用 Windows 开发? at April 25, 2014

    可能是

    1. 折腾的时间成本就够买个 Mac 了。
    2. 这种折腾收获的经验是毫无用途的。
  • [上海][2014年4月15日] 四月周中聚会 at April 24, 2014

    #56 楼 @gene_wu

    上午敬拜,下午培训(5 月 10 号要受洗啦,所以要接受相关的培训。)。

    你对我大基督可感兴趣,送你本圣经吧。

    以马内利。 😄

  • [上海][2014年4月15日] 四月周中聚会 at April 23, 2014

    #53 楼 @iBachue @gene_wu

    两位大神,你们可以再原谅我一次吗。

    我是一枚小基督徒,周日要去教会敬拜,不去神会不高兴。

    所以周日俺还是参加不了。

  • [上海][2014年4月15日] 四月周中聚会 at April 22, 2014

    #51 楼 @gene_wu

    据 @zgm 说,那天的聚会很火爆。可惜我那天在加班,所以没去成。

    下次一定参加。 😄

  • Linode 新网站发布了,啊 SSD 来了,内存翻倍了,网络 40Gbps 了 at April 18, 2014

    良心企业。

  • [上海][2014年4月15日] 四月周中聚会 at April 11, 2014

    报名,嘎嘎

  • 亚马逊 CEO 写给所有员工的信--Anyone who doesn't do this will be fired. at April 05, 2014

    这是几年前写的吗?

  • [上海] 薄荷科技寻找靠谱的 Ruby,Web 前端,iOS 和 Android 工程师 at April 05, 2014

    #54 楼 @hrz3424

    啥时投的啊。

    清明节,大家都出去玩了吧。

    再等两天。^-^

  • 万万没想到竟然排到了 Github Ruby Trends 今天的第一名,国内 ruby 开发社区真是强悍 at April 03, 2014

    下周深入研究一下,嘎嘎

  • 一篇论文有多个作者,表单应该怎么写? at March 31, 2014

    model

    class Paper
      has_many :authors, through: :paper_authors
      has_many :paper_authors
      accepts_nested_attributes_for :authors
    end
    
    class author
      has_many :papers, through: :paper_authors
      has_many :paper_authors
    end
    
    class PaperAuthor
      # paper_id
      # author_id
      # role
      # priority
    end
    

    建议关系表中增加 priority 和 role 两个属性

    priority:第一作者、第二作者、第三作者 role:通讯作者,普通作者

    表单

    用 accepts nested attributes

    <%= simple_form_for  @papers do |f| %>
      <%= f.input :title, label: "标题" %>
      <%= f.simple_fields_for :articles do |builder|%>
        <fieldset>
          <%= builder.input :author_id, as: :select, label: "作者" %><br/>
          ....
        </fieldset>
      <% end -%>
    <% end -%>
    
  • [上海] 薄荷科技寻找靠谱的 Ruby,Web 前端,iOS 和 Android 工程师 at March 18, 2014

    明早贴几张未婚美女图吧。😄

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