<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>slim (Slim)</title>
    <link>https://ruby-china.org/slim</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>这种情况下应该怎么用 Polymorphic Associations</title>
      <description>&lt;p&gt;我现在有 Product 和 Image 两个 Model。Product 有三种图片：feature image，gallery image，description image。两个 Model 的主要属性如下：&lt;/p&gt;

&lt;p&gt;Product&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;id&lt;/li&gt;
&lt;li&gt;title&lt;/li&gt;
&lt;li&gt;price&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Image&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;id&lt;/li&gt;
&lt;li&gt;title&lt;/li&gt;
&lt;li&gt;url&lt;/li&gt;
&lt;li&gt;imageable_id&lt;/li&gt;
&lt;li&gt;imageable_type&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;我是想用 imageable_type 来区分三种不同类型的图片。请问这种情况下应该怎么用 Polymorphic Associations 把两个 Model 关联起来？
这样设计表的目的也是为了以后如果有另外的 Model 需要图片，也可以用这个 Image 类。&lt;/p&gt;</description>
      <author>slim</author>
      <pubDate>Mon, 28 Mar 2016 22:25:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/29486</link>
      <guid>https://ruby-china.org/topics/29486</guid>
    </item>
    <item>
      <title>各位大神，成都互联网的月薪一般是多少哇？</title>
      <description>&lt;p&gt;本人北京应届毕业生一枚，想回成都发展啦。刚问问各位成都工作的朋友月薪一般是多少哇。&lt;/p&gt;

&lt;p&gt;最近收到了 ThoughtWorks 的 Offer，公司环境氛围都很不错，是我理想的工作环境，就是感觉给的薪资一般~&lt;/p&gt;</description>
      <author>slim</author>
      <pubDate>Wed, 03 Dec 2014 22:21:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/23009</link>
      <guid>https://ruby-china.org/topics/23009</guid>
    </item>
    <item>
      <title>在 rails 里面如何向别的网站发起 post 请求</title>
      <description>&lt;p&gt;最近正在做一个 web app，有一部分数据需要调用别的网站的 API 来获得。这就需要在 controller 里面向别的网站发送 POST 请求。请问如何可以实现呢？&lt;/p&gt;</description>
      <author>slim</author>
      <pubDate>Mon, 28 Jul 2014 15:21:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/20714</link>
      <guid>https://ruby-china.org/topics/20714</guid>
    </item>
    <item>
      <title>大家有什么推荐的开源网盘框架吗？</title>
      <description>&lt;p&gt;最近朋友的网站想扩展业务，需要网盘支撑。想做成 dropbox 那种形式，以 AWS S3 作为存储设备。最好支持文件查重，也就是说别的用户上传过的文件，下一个用户同样的文件不需要再上传了。&lt;/p&gt;

&lt;p&gt;目前看到了一个开源的网盘：&lt;a href="http://owncloud.org/" rel="nofollow" target="_blank"&gt;http://owncloud.org/&lt;/a&gt;, 不过这个不支持文件查重，也不是针对 S3 做的。&lt;/p&gt;</description>
      <author>slim</author>
      <pubDate>Tue, 06 May 2014 11:25:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/19042</link>
      <guid>https://ruby-china.org/topics/19042</guid>
    </item>
    <item>
      <title>SQLite 3 适合用在产品当中吗</title>
      <description>&lt;p&gt;刚刚接触 rails。感觉很强大呀。但是为啥 rails 默认用 sqlite3 呢。如果网站访问量比较大，sqlite3 还适用吗？&lt;/p&gt;</description>
      <author>slim</author>
      <pubDate>Wed, 04 Dec 2013 00:20:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/15976</link>
      <guid>https://ruby-china.org/topics/15976</guid>
    </item>
  </channel>
</rss>
