<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>tanjianna (jason)</title>
    <link>https://ruby-china.org/tanjianna</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>FactoryGirl 如何伪造大量的数据呢？</title>
      <description>&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FactoryGirl.define do
    factory :product do
        seo_title ""
        title "40+10种疾病保障 国寿康宁重大疾病保险"
        name "40+10种疾病保障 国寿康宁重大疾病保险"
        market_at Time.now
    end
end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;我如何伪造大量的数据呢？比如 title 我用其他保险险种 可以不？&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Fri, 28 Sep 2012 14:17:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/5805</link>
      <guid>https://ruby-china.org/topics/5805</guid>
    </item>
    <item>
      <title>Mongoid has_many sort</title>
      <description>&lt;p&gt;例如我有两张表：&lt;/p&gt;

&lt;p&gt;brands 和 devices
brand has_many devices
devices belongs_to brand&lt;/p&gt;

&lt;p&gt;我现在想 Brand.find(params[:id]) 遍历 Brand 和 Devices 并且 Devices List 需要根据 create_time 来排序！我该如何做好？&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Mon, 24 Sep 2012 21:53:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/5731</link>
      <guid>https://ruby-china.org/topics/5731</guid>
    </item>
    <item>
      <title>rails 如何导入远程静态 html？</title>
      <description>&lt;p&gt;rails 如何导入远程静态 html？比如 java include 一个静态页面！&lt;a href="http://xxxxx.com/1.html" rel="nofollow" target="_blank"&gt;http://xxxxx.com/1.html&lt;/a&gt; 用 rails 如何导入进来呢？
&amp;lt;%= render :file =&amp;gt; 'layouts/shared/discus_recommend'  %&amp;gt;请求本地 html 就可以
但是下面就不行了
&amp;lt;%= render :file =&amp;gt; '&lt;a href="http://XXX.com/discus_recommend.html" rel="nofollow" target="_blank"&gt;http://XXX.com/discus_recommend.html&lt;/a&gt;' %&amp;gt;&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Thu, 20 Sep 2012 11:51:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/5653</link>
      <guid>https://ruby-china.org/topics/5653</guid>
    </item>
    <item>
      <title>rails_admin 这个后台加上 markitup？</title>
      <description>&lt;p&gt;rails_admin 这个后台真麻烦，想加上一个轻量级的在线编辑器 - markitup！哪位大神尝试过啊？&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Thu, 13 Sep 2012 15:35:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/5523</link>
      <guid>https://ruby-china.org/topics/5523</guid>
    </item>
    <item>
      <title>rails_admin 我想禁止编辑，新增 或者 导出数据，我该怎么配置？</title>
      <description>&lt;p&gt;现在在玩 rails_admin 来做后台，但是想禁止某些功能，例如 导出数据，新增或者历史等功能视图，我该怎么配置&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Thu, 13 Sep 2012 01:08:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/5511</link>
      <guid>https://ruby-china.org/topics/5511</guid>
    </item>
    <item>
      <title>devise 做后台 禁止注册模块</title>
      <description>&lt;p&gt;devise 做后台 禁止注册模块 我只是想要登陆就足够了 我该怎么配置呢？&lt;/p&gt;</description>
      <author>tanjianna</author>
      <pubDate>Tue, 11 Sep 2012 12:15:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/5475</link>
      <guid>https://ruby-china.org/topics/5475</guid>
    </item>
  </channel>
</rss>
