contents.yml
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:5k
源码类别:

Ajax

开发平台:

Others

  1. # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
  2. article1:
  3.   title: Article 1!
  4.   body: body
  5.   extended: "extended content"
  6.   created_at: <%= (Time.now - 2.days).to_s(:db) %>
  7.   updated_at: <%= (Time.now - 2.days).to_s(:db) %>
  8.   published_at: <%= (Time.now - 2.days).to_s(:db) %>
  9.   allow_comments: true
  10.   allow_pings: true
  11.   permalink: article-1
  12.   user: tobi
  13.   author: Tobi
  14.   guid: a87c4220-18d4-11da-aadd-0002a5d5c51b
  15.   type: Article
  16.   published: true
  17.   state: published
  18.   tags: foo, bar
  19.   text_filter: markdown_filter
  20. article2:
  21.   type: Article
  22.   title: Article 2!
  23.   body: body
  24.   extended: extended content
  25.   created_at: <%= (Time.now - 1.days).to_s(:db) %>
  26.   updated_at: <%= (Time.now - 1.days).to_s(:db) %>
  27.   published_at: <%= (Time.now - 1.days).to_s(:db) %>
  28.   allow_comments: true
  29.   allow_pings: true
  30.   permalink: article-2
  31.   user: longbob
  32.   author: Bob
  33.   guid: bbbbb
  34.   published: true
  35.   state: published
  36.   tags: foo
  37. article3:
  38.   type: Article
  39.   title: Article 3!
  40.   body: body
  41.   extended: extended content
  42.   created_at: 2004-06-01 20:00:02
  43.   updated_at: 2004-06-01 20:00:02
  44.   published_at: 2004-06-01 20:00:02
  45.   allow_comments: true
  46.   allow_pings: true
  47.   permalink: article-3
  48.   user: tobi
  49.   author: Tobi
  50.   guid: ccccc
  51.   published: true
  52.   state: published
  53. article4:
  54.   type: Article
  55.   title: Article 4!
  56.   body: I'm not "public":http://www.example.com/public!
  57.   published: false
  58.   state: draft
  59.   created_at: 2004-06-01 20:00:01
  60.   updated_at: 2004-06-01 20:00:01
  61.   published_at: 2004-06-01 20:00:01
  62.   allow_comments: true
  63.   allow_pings: true
  64.   permalink: article-4
  65.   user: tobi
  66.   author: Tobi
  67.   guid: ddddd
  68.   tags: bar, bazz
  69. first_page:
  70.   type: Page
  71.   name: page_one
  72.   title: Page One Title
  73.   body: ho ho ho
  74.   created_at: 2005-05-05 01:00:01
  75.   published_at: 2005-05-05 01:00:01
  76.   updated_at: 2005-05-05 01:00:01
  77.   user: tobi
  78.   published: true
  79.   state: published
  80. another_page:
  81.   type: Page
  82.   name: page/two
  83.   title: Another Page Title
  84.   body: another body for yet another page
  85.   updated_at: 2005-05-05 01:00:00
  86.   created_at: 2005-05-05 01:00:00
  87.   published_at: 2005-05-05 01:00:00
  88.   user: tobi
  89.   published: true
  90.   state: published
  91. markdown_page:
  92.   type: Page
  93.   name: markdown-page
  94.   title: Markdown Page
  95.   text_filter: markdown_filter
  96.   body: this is *markdown*.
  97.   created_at: 2005-05-05 01:00:02
  98.   updated_at: 2005-05-05 01:00:02
  99.   published_at: 2005-05-05 01:00:02
  100.   user: tobi
  101.   published: true
  102.   state: published
  103. inactive_article:
  104.   type: Article
  105.   title: Inactive Article
  106.   body: body
  107.   extended: extended content
  108.   created_at: 2004-05-01 20:00:02
  109.   updated_at: 2004-05-01 20:00:02
  110.   published_at: 2004-05-01 20:00:02
  111.   allow_comments: true
  112.   allow_pings: true
  113.   permalink: inactive-article
  114.   user: tobi
  115.   author: Tobi
  116.   guid: i1n2a3c4t5i6v7e
  117.   published: true
  118.   state: published
  119. search_target:
  120.   type: Article
  121.   title: Find me!
  122.   body: search target
  123.   extended: extended content
  124.   allow_comments: true
  125.   allow_pings: true
  126.   permalink: second-blog-article
  127.   created_at: 2004-04-01 12:00:00
  128.   updated_at: 2004-04-01 12:00:00
  129.   published_at: 2004-04-01 12:00:00
  130.   user: tobi
  131.   author: Tobi
  132.   guid: 2b1l0o6g4ar7
  133.   published: true
  134.   state: published
  135. xmltest:
  136.   type: Article
  137.   title: Associations aren't :dependent => true anymore
  138.   body: originally seen on <a href="http://blog.rubyonrails.org/">blog.rubyonrails.org</a>
  139.   extended: extended content
  140.   allow_comments: true
  141.   allow_pings: true
  142.   permalink: associations-arent-dependent-true-anymore
  143.   created_at: 2003-04-28 05:31:01
  144.   updated_at: 2003-04-28 05:31:01
  145.   published_at: 2003-04-28 05:31:01
  146.   user: tobi
  147.   author: Tobi
  148.   guid: urn:uuid:0d676c66-4135-4a8b-9d65-b6a3248d3032
  149.   published: true
  150.   state: published
  151. markdown_article:
  152.   type: Article
  153.   title: How made link with markdown
  154.   body: "in markdown formatnn * wen * usen [ok](http://blog.ok.com) to define a link"
  155.   extended: extended content
  156.   allow_comments: true
  157.   allow_pings: true
  158.   permalink: associations-arent-dependent-true-anymore
  159.   created_at: 2003-04-28 05:31:00
  160.   updated_at: 2003-04-28 05:31:00
  161.   published_at: 2003-04-28 05:31:00
  162.   user: tobi
  163.   author: Tobi
  164.   guid: urn:uuid:0d676c66-4135-4a8b-9d65-b6a3248d3033
  165.   published: true
  166.   state: published
  167.   text_filter: markdown_filter
  168. spammed_article:
  169.   type: Article
  170.   title: C'mon Spam Me!
  171.   body: A bunch of innocuous content
  172.   allow_comments: true
  173.   allow_pings: true
  174.   permalink: cmon-spam-me
  175.   created_at: 2001-01-01
  176.   updated_at: 2001-01-01
  177.   published_at: 2001-01-01
  178.   user: tobi
  179.   author: Tobi
  180.   guid: urn:uuid:0d676c66-4135-4a8b-9d65-b6a3248d3023
  181.   published: true
  182.   state: published
  183. publisher_article:
  184.   title: Article write by publisher
  185.   body: body
  186.   extended: extended content
  187.   created_at: 2004-06-02 20:00:03
  188.   updated_at: 2004-06-02 20:00:03
  189.   published_at: 2004-06-02 20:00:03
  190.   allow_comments: true
  191.   allow_pings: true
  192.   permalink: article-write-by-publisher
  193.   user: user_publisher
  194.   author: user_publisher
  195.   guid: a87c4220-18d4-11db-aadd-1002a5d5c51c
  196.   type: Article
  197.   published: true
  198.   state: published
  199.   tags: foo, bar
  200. utf8_article:
  201.   title: ルビー
  202.   body: body
  203.   extended: extended content
  204.   created_at: 2004-06-02 20:00:04
  205.   updated_at: 2004-06-02 20:00:04
  206.   published_at: 2004-06-02 20:00:04
  207.   allow_comments: true
  208.   allow_pings: true
  209.   permalink: ルビー
  210.   user: user_publisher
  211.   author: user_publisher
  212.   guid: a87c4220-18d4-11db-aadd-1002a5d5c51d
  213.   type: Article
  214.   published: true
  215.   state: published
  216.   tags: foo2, bar2