<?xml version="1.0" encoding="UTF-8"?>
<articles type="array">
  <article>
    <body>merb&#12391;&#25505;&#29992;&#12373;&#12428;&#12390;&#12356;&#12427;&#12472;&#12455;&#12493;&#12524;&#12540;&#12479;&#12501;&#12524;&#12540;&#12512;&#12527;&#12540;&#12463;&#12398;&#26412;&#21629;&#12289;
[templater](http://github.com/jnicklas/templater/tree/master)
&#12395;&#12289;ruby-1.9.1&#23550;&#24540;&#12398;&#12497;&#12483;&#12481;&#12434;&#21462;&#12426;&#36796;&#12435;&#12391;&#38914;&#12365;&#12414;&#12375;&#12383;&#12290;

![ss](http://img.skitch.com/20090131-pdjc6kt623uau752ap9bahgicr.png)

</body>
    <cached-tag-list>ruby 191 &#12362;&#30693;&#12425;&#12379;</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-31T19:49:47+00:00</created-at>
    <daily-archive-id type="integer">1018</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1262</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-31T19:45:00+00:00</published-at>
    <secret>aaaa849a-a7ea-43f0-ade7-b4fffb3cbec2</secret>
    <title>templater is ready to use with ruby-1.9.1</title>
    <updated-at type="datetime">2009-01-31T19:49:47+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>&#12524;&#12460;&#12471;&#12540;&#12503;&#12525;&#12480;&#12463;&#12488;&#12434;ruby-1.9.1&#12395;&#23550;&#24540;&#12373;&#12379;&#12427;&#26041;&#27861;&#12398;&#12513;&#12514;&#12391;&#12377;&#12290;

 * RSTRING(str)-&gt;ptr&#12399;RSTRING_PTR(str) &#12395;&#12377;&#12427;
 * RHASH(hash)-&gt;tbl&#12399;RHASH_TBL(hash)&#12395;&#12377;&#12427;
 * RFLOAT(float)-&gt;value&#12399;RFLOAT_VALUE(float)&#12395;&#12377;&#12427;
 * `#include &quot;re&quot;` &#12399; `#include &quot;ruby/re&quot;`
 * `#include &quot;st&quot;` &#12399; `#include &quot;ruby/st&quot;`
 * require &quot;sha1&quot;&#12399;&#12289;require &quot;digest/sha1&quot;&#12395;&#12375;&#12390;&#12289;
ruby&gt;&gt;
SHA1.new(string).to_s
&lt;&lt;--
&#12434;
ruby&gt;&gt;
Digest::SHA1.hexdigest(string) 
&lt;&lt;--
&#12395;&#22793;&#12360;&#12427;
 * string.to_a&#12399;string.each_line&#12290;Enumerator&#12391;&#12399;&#12394;&#12367;Array&#12364;&#24517;&#35201;&#12394;&#22580;&#21512;&#12399; string.each_line.to_a &#12395;&#12377;&#12428;&#12400;&#33391;&#12356;&#12290;
 * string.each&#12399;string.each_line&#12395;&#12290;</body>
    <cached-tag-list>ruby 191 memo</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-31T14:35:59+00:00</created-at>
    <daily-archive-id type="integer">1018</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1261</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-31T14:30:00+00:00</published-at>
    <secret>317bf34d-910c-4a80-9cc6-e9b47951cec9</secret>
    <title>ruby-1.9.1&#23550;&#24540;&#12398;&#12383;&#12417;&#12398;&#12513;&#12514;</title>
    <updated-at type="datetime">2009-01-31T14:35:59+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>merb&#26412;&#20307;&#20840;&#37096;&#23550;&#24540;&#12377;&#12427;&#12398;&#12399;&#12385;&#12423;&#12387;&#12392;&#21427;&#12375;&#12363;&#12387;&#12383;&#12398;&#12391;&#12289;
merb-gen&#12434;&#36215;&#21205;&#12377;&#12427;&#25152;&#12414;&#12391;&#12391;&#24517;&#35201;&#12394;gem&#12434;ruby-1.9.1&#23550;&#24540;&#12395;&#12375;&#12390;&#12415;&#12414;&#12375;&#12383;&#12290;

 * [bcrypt-ruby](http://merbi.st/plugins/18)
 * [json](http://merbi.st/plugins/17)
 * [templater](http://merbi.st/plugins/16)

&#12371;&#12428;&#12395;&#21152;&#12360;&#12390;&#12289;merb-gen&#33258;&#20307;&#12398;&#12467;&#12540;&#12489;&#12418;ruby-1.9.1&#23550;&#24540;&#12373;&#12379;&#12414;&#12375;&#12383;&#12290;

 * [Use &quot;digest/sha1&quot; instead of &quot;sha1&quot; for corresponding to ruby-1.9.1](http://github.com/genki/merb/commit/3ecca96f4183baf35f1e29e2d0232c6c196d75f9)

&#12371;&#12428;&#12391;merb-gen&#12467;&#12510;&#12531;&#12489;&#12391;app&#12398;&#12402;&#12394;&#24418;&#12434;&#29983;&#25104;&#12377;&#12427;&#25152;&#12414;&#12391;&#12399;&#21205;&#12365;&#12414;&#12377;&#12290;</body>
    <cached-tag-list>ruby merb 191</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-31T14:20:49+00:00</created-at>
    <daily-archive-id type="integer">1018</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1260</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-31T14:16:00+00:00</published-at>
    <secret>2ef77f1b-0b36-4f28-ab5e-31af3ad296d6</secret>
    <title>merb-gen&#12434;&#36215;&#21205;&#12377;&#12427;&#12398;&#12395;&#24517;&#35201;&#12394;gem&#12434;ruby-1.9.1&#23550;&#24540;&#12395;&#12375;&#12414;&#12375;&#12383;</title>
    <updated-at type="datetime">2009-01-31T14:21:22+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>Ruby-1.9.1&#12522;&#12522;&#12540;&#12473;&#12362;&#12417;&#12391;&#12392;&#12358;&#12372;&#12374;&#12356;&#12414;&#12377;&#12290;
&#12496;&#12540;&#12472;&#12519;&#12531;&#30058;&#21495;&#12363;&#12425;&#12377;&#12427;&#12392;&#24819;&#20687;&#12375;&#12395;&#12367;&#12356;&#12391;&#12377;&#12364;&#12289;&#12371;&#12428;&#12399;Ruby-1.9&#31995;&#12398;&#26368;&#21021;&#12398;&#23433;&#23450;&#29256;&#12522;&#12522;&#12540;&#12473;&#12391;&#12354;&#12426;&#12289;&#26032;&#12375;&#12356;Ruby&#12398;&#26178;&#20195;&#12398;&#24149;&#38283;&#12369;&#12391;&#12377;&#12290;

[**[ANN] Ruby 1.9.1&#12522;&#12522;&#12540;&#12473;**](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/45836)

&gt;Ruby 1.9&#12399;Ruby&#12398;&#26032;&#12375;&#12356;&#31995;&#32113;&#12391;&#12377;&#12290;&#36817;&#20195;&#30340;&#12395;&#12289;&#39640;&#36895;&#12395;&#12289;&#25991;&#27861;&#12418;&#26126;&#30906;&#12395;&#12289;&#22810;&#35328;&#35486;&#21270;
&#12373;&#12428;&#12289;&#22810;&#12367;&#12398;&#25913;&#21892;&#12364;&#12394;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;Ruby 1.8&#31995;&#32113;&#12399;2003&#24180;&#20197;&#26469;&#21033;&#29992;&#12373;&#12428;&#12289;&#22810;&#12367;&#12398;
&#32032;&#26228;&#12425;&#12375;&#12356;&#35069;&#21697;&#12434;&#29983;&#12415;&#20986;&#12375;&#12414;&#12375;&#12383;&#12290;&#26412;&#26085;&#12289;1.9&#12398;&#27508;&#21490;&#12364;&#22987;&#12414;&#12426;&#12414;&#12377;&#12290;

&#38306;&#20418;&#32773;&#12398;&#30342;&#27096;&#12289;&#12362;&#30130;&#12428;&#12373;&#12414;&#12391;&#12375;&#12383;&#12290;</body>
    <cached-tag-list>news ruby</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-31T08:32:46+00:00</created-at>
    <daily-archive-id type="integer">1018</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1259</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-31T08:28:00+00:00</published-at>
    <secret>48c74cf5-5797-4790-818d-fb32437c1cd4</secret>
    <title>&#31069;&#12539;Ruby-1.9.1 &#12522;&#12522;&#12540;&#12473;&#65281;</title>
    <updated-at type="datetime">2009-01-31T08:33:40+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>&#12371;&#12435;&#12394;&#39080;&#12395;&#26360;&#12356;&#12390;&#12415;&#12383;&#12356;&#12392;&#24605;&#12387;&#12383;&#12290;

html&gt;&gt;
&lt;% posts.each.if do %&gt;
&lt;ul&gt;
  &lt;% iterate do |post| %&gt;
  &lt;li&gt;&lt;%= h(post.body) %&gt;&lt;/li&gt;
  &lt;% end %&gt;
&lt;/ul&gt;
&lt;% end.else %&gt;
&lt;div&gt;
  Not yet posted.
&lt;/div&gt;
&lt;% end %&gt;
&lt;&lt;--

Enumerator#if&#12434;&#20316;&#12428;&#12400;&#23455;&#29694;&#20986;&#26469;&#12381;&#12358;&#12384;&#12290;

**&#36861;&#35352;**

&#12392;&#12356;&#12358;&#20107;&#12391;&#12289;&#20316;&#12387;&#12390;&#12415;&#12383;&#12290;

ruby&gt;&gt;
module Enumerable
  class Iterator  
    def initialize(enumerable)
      @enumerable = enumerable
    end

    def iterate(&amp;block)
      block.call(@enumerable.next) while true
    rescue StopIteration                 
    end                                  
  end                          

  class Enumerator 
    def if(&amp;block)
      Iterator.new(self).instance_eval(&amp;block) if count &gt; 0
      self
    end

    def else(&amp;block)
      block.call if count == 0
    end
  end
end
&lt;&lt;--</body>
    <cached-tag-list>ruby memo</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-30T18:56:03+00:00</created-at>
    <daily-archive-id type="integer">1016</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1257</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-31T09:31:00+00:00</published-at>
    <secret>0b1fab5f-21fc-4855-b283-27f550febade</secret>
    <title>Enumerator&#12395;&#38306;&#12377;&#12427;&#22916;&#24819;</title>
    <updated-at type="datetime">2009-01-31T10:10:26+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>Merb&#12398;Rake&#12479;&#12473;&#12463;&#38291;&#12398;&#20381;&#23384;&#38306;&#20418;&#12364;&#30693;&#12426;&#12383;&#12363;&#12387;&#12383;&#12398;&#12391;&#12289;&#35519;&#12409;&#12390;&#12415;&#12414;&#12375;&#12383;&#12290;

pre&gt;&gt;
app &lt;= [slices:merb-auth-slice-password:freeze:app_with_gem]
clobber_coverage &lt;= [spec:clobber, spec:coverage]
copy_assets &lt;= [slices:merb-auth-slice-password:install]create &lt;= [db:reset]
db:migrate:up &lt;= [db:migrate]
drop &lt;= [db:reset]
env &lt;= [slices:list]
freeze:app &lt;= [slices:merb-auth-slice-password:freeze]
freeze:views &lt;= [slices:merb-auth-slice-password:patch]
gem &lt;= [slices:merb-auth-slice-password:freeze:app_with_gem]
load &lt;= [db:migrate:down, db:migrate:up]
merb_env &lt;= [audit:actions, audit:controllers, audit:routes, db:automigrate, db:
autoupgrade, db:database_yaml, db:migrate:load, sessions:clear, sessions:create]
migrate &lt;= [db:reset, slices:merb-auth-slice-password:install]
preflight &lt;= [slices:merb-auth-slice-password:install]
setup_directories &lt;= [slices:merb-auth-slice-password:install]
slices:list &lt;= [slices]
spec &lt;= [default]
spec:default &lt;= [slices:merb-auth-slice-password:spec, spec]
spec:explain &lt;= [slices:merb-auth-slice-password:spec]
stubs &lt;= [slices:merb-auth-slice-password:patch]
&lt;&lt;--

&#21491;&#20596;&#12364;&#24038;&#20596;&#12395;&#20381;&#23384;&#12375;&#12390;&#12427;&#24863;&#12376;&#12391;&#12377;&#12290;
&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#12467;&#12540;&#12489;&#12434;Rakefile&#12398;&#26411;&#23614;&#12395;&#35352;&#36848;&#12375;&#12390;&#21462;&#24471;&#12375;&#12414;&#12375;&#12383;&#12290;

ruby&gt;&gt;
tree = {}
Rake::Task.tasks.each{|t| t.prerequisites.each{|r| (tree[r] ||= []) &lt;&lt; t.name}}
tree.sort_by{|i,j|i}.each{|r,a| puts &quot;#{r} &lt;= [#{a.sort.join(', ')}]&quot;}
&lt;&lt;--</body>
    <cached-tag-list>merb rake memo</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-30T03:07:36+00:00</created-at>
    <daily-archive-id type="integer">1016</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1256</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-30T03:00:00+00:00</published-at>
    <secret>60b0d730-1867-4eae-b100-b9bb6fa4fe4c</secret>
    <title>Merb&#12398;Rake&#12479;&#12473;&#12463;&#12398;&#20381;&#23384;&#38306;&#20418;</title>
    <updated-at type="datetime">2009-01-30T03:07:36+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>Merb&#12398;&#33391;&#12356;&#25152;&#12434;&#32057;&#20171;&#12377;&#12427;&#12471;&#12522;&#12540;&#12474;&#31532;&#65298;&#22238;&#12290;
&#20170;&#22238;&#12399;Merb&#12398;&#12489;&#12461;&#12517;&#12513;&#12531;&#12488;Viewer&#12434;&#32057;&#20171;&#12375;&#12414;&#12377;&#12290;
Merb&#12398;&#20844;&#24335;&#12489;&#12461;&#12517;&#12513;&#12531;&#12488;&#12399;&#20197;&#19979;&#12398;&#12469;&#12452;&#12488;&#12391;&#35211;&#12427;&#20107;&#12364;&#20986;&#26469;&#12414;&#12377;&#12290;

&lt;http://merbivore.com/documentation/current/doc/rdoc/stack/index.html&gt;

![ss](http://img.skitch.com/20090128-b1yw1x89mpkfumcmgcw8299nrg.png)

&#24120;&#12395;&#26368;&#26032;&#12398;&#12489;&#12461;&#12517;&#12513;&#12531;&#12488;&#12364;&#20844;&#38283;&#12373;&#12428;&#12390;&#12356;&#12390;&#12289;
&#12452;&#12531;&#12463;&#12522;&#12513;&#12531;&#12479;&#12523;&#12394;&#26908;&#32034;&#12364;&#20986;&#26469;&#12383;&#12426;&#12375;&#12390;&#20415;&#21033;&#12391;&#12377;&#12290;

**&#36861;&#35352;**

&#21807;&#19968;&#12398;&#38627;&#28857;&#12399;&#12289;URL&#12364;&#35226;&#12360;&#12395;&#12367;&#12356;&#20107;&#12384;&#12392;&#24605;&#12387;&#12383;&#12398;&#12391;&#12289;
&#30701;&#12367;&#12390;&#35226;&#12360;&#12420;&#12377;&#12356;&#12471;&#12519;&#12540;&#12488;&#12459;&#12483;&#12488;&#12434;&#20316;&#12387;&#12390;&#12415;&#12414;&#12375;&#12383;&#12290;

 * &lt;http://doc.merbi.st&gt;
 * &lt;http://api.merbi.st&gt;

&#19978;&#35352;&#12398;URL&#12363;&#12425;&#12289;&#20844;&#24335;&#12398;git-head doc&#12395;&#12522;&#12480;&#12452;&#12524;&#12463;&#12488;&#12375;&#12414;&#12377;&#12290;

&#12371;&#12428;&#12391;&#12356;&#12388;&#12391;&#12418;&#12289;&#24605;&#12356;&#31435;&#12387;&#12383;&#12425;&#12377;&#12368;&#12395;&#12489;&#12461;&#12517;&#12513;&#12531;&#12488;&#12434;&#21442;&#29031;&#20986;&#26469;&#12414;&#12377;&#12397;&#12290;</body>
    <cached-tag-list>PoNR merb</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-28T17:06:18+00:00</created-at>
    <daily-archive-id type="integer">1014</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1254</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-28T17:00:00+00:00</published-at>
    <secret>88d84516-a5a9-4646-be2a-3d9f95e3e6e8</secret>
    <title>Point of No Return: Merb&#12398;&#12489;&#12461;&#12517;&#12513;&#12531;&#12488;Viewer</title>
    <updated-at type="datetime">2009-01-29T01:27:20+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>&#12375;&#12400;&#12425;&#12367;&#12289;Merb&#12398;&#33391;&#12356;&#25152;&#12434;&#32057;&#20171;&#12375;&#12390;&#12356;&#12371;&#12358;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;

Merb&#12398;partial&#12399;&#12289;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#20351;&#12356;&#12414;&#12377;&#12290;

html&gt;&gt;
&lt;%= partial :form, :hello =&gt; @hello %&gt;
&lt;&lt;--

Rails&#12398;&#22580;&#21512;&#12384;&#12392;&#12371;&#12435;&#12394;&#24863;&#12376;&#12290;

html&gt;&gt;
&lt;%= render :partial =&gt; &quot;form&quot;, :locals =&gt; {:hello =&gt; @hello} %&gt;
&lt;&lt;--

Merb&#12398;&#26041;&#12364;&#12471;&#12531;&#12503;&#12523;&#12394;&#12384;&#12369;&#12391;&#12394;&#12367;&#12289;
Controller&#12398;&#20013;&#12363;&#12425;&#12418;&#21516;&#12376;&#12424;&#12358;&#12395;&#21033;&#29992;&#20986;&#26469;&#12414;&#12377;&#12290;</body>
    <cached-tag-list>PoNR merb</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-27T14:57:51+00:00</created-at>
    <daily-archive-id type="integer">1013</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1253</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-27T14:46:00+00:00</published-at>
    <secret>7e227a35-2821-425e-b58c-439813efca04</secret>
    <title>Point of No Return: Merb&#12398;partial</title>
    <updated-at type="datetime">2009-01-27T14:57:51+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>Merb&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12391;Atom&#12501;&#12451;&#12540;&#12489;&#12434;&#37197;&#20449;&#12377;&#12427;&#26041;&#27861;&#12398;&#12513;&#12514;&#12391;&#12377;&#12290;

&#12414;&#12378;&#12399;&#12289;config/dependencies.rb&#12395;&#12289;&#21033;&#29992;&#12377;&#12427;Gem&#12434;&#30331;&#37682;&#12375;&#12414;&#12377;&#12290;

ruby&gt;&gt;
dependency &quot;merb-builder&quot;
dependency &quot;merb_full_url&quot;
&lt;&lt;--

[merb_full_url](http://merbi.st/plugins/13)
&#12399;&#12289;&#12501;&#12451;&#12540;&#12489;&#20013;&#12391;&#22475;&#12417;&#36796;&#12414;&#12428;&#12427;
absolute&#12394;URL&#12434;&#29983;&#25104;&#12377;&#12427;&#12383;&#12417;&#12398;&#12503;&#12521;&#12464;&#12452;&#12531;&#12391;&#12377;&#12290;
&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12391;&#12365;&#12414;&#12377;&#12290;

pre&gt;&gt;
% sudo gem install merb_full_url --source http://merbi.st
&lt;&lt;--

&#27425;&#12395;&#12289;&#12467;&#12531;&#12488;&#12525;&#12540;&#12521;&#12398;index&#12450;&#12463;&#12471;&#12519;&#12531;&#12391;
atom&#12501;&#12451;&#12540;&#12489;&#12434;&#25552;&#20379;&#12377;&#12427;&#20107;&#12434;&#25351;&#31034;&#12375;&#12414;&#12377;&#12290;

ruby&gt;&gt;
  def index
    provides :atom
&lt;&lt;--

&#12373;&#12425;&#12395;&#12289;config/init.rb&#12391;&#12289;MIME&#12479;&#12452;&#12503;&#12392;&#12375;&#12390;atom&#12434;&#30331;&#37682;&#12375;&#12414;&#12377;&#12290;

ruby&gt;&gt;
Merb::BootLoader.before_app_loads do
  # (..snip..)
  Merb.add_mime_type(:atom, :to_atom, %w[application/atom+xml])
end

&lt;&lt;--

&#32154;&#12356;&#12390;&#12289;&#12501;&#12451;&#12540;&#12489;&#12434;&#29983;&#25104;&#12377;&#12427;&#12383;&#12417;&#12398;index.atom.builder&#12501;&#12449;&#12452;&#12523;&#12434;
app/views/{resource_name}&#12398;&#19979;&#12395;&#20316;&#12426;&#12414;&#12377;&#12290;
&#12371;&#12398;&#12354;&#12383;&#12426;&#12399;Rails&#12398;XmlBuilder&#12392;&#21516;&#12376;&#12424;&#12358;&#12394;&#24863;&#12376;&#12391;&#12377;&#12290;

ruby&gt;&gt;
xml.instruct! :xml, :version=&gt;&quot;1.0&quot;
xml.feed(:xmlns =&gt; &quot;http://www.w3.org/2005/Atom&quot;) do |feed|
  feed.title @title
  feed.link :type =&gt; 'text/html', :rel =&gt; 'alternate',
    :href =&gt; full_resource(:posts)

  @posts.each do |post|
    feed.entry do |entry|
      entry.id post.id
      entry.title post.title
      entry.content post.body, :type =&gt; 'text'
      entry.issued post.created_at
      entry.modified post.updated_at
      entry.link :type =&gt; &quot;text/html&quot;, :rel =&gt; &quot;alternate&quot;,
        :href =&gt; full_resource(post)
      entry.author do |author|
        author.name post.user.login
      end
    end
  end
end
&lt;&lt;--

&#20197;&#19978;&#12391;&#23436;&#20102;&#12290;&#12371;&#12428;&#12391;&#24460;&#12399;/{resource_name}.atom
&#12395;&#12450;&#12463;&#12475;&#12473;&#12377;&#12428;&#12400;&#12289;&#12501;&#12451;&#12540;&#12489;&#12364;&#34920;&#31034;&#12373;&#12428;&#12414;&#12377;&#12290;

&#12385;&#12394;&#12415;&#12395;&#12289;Vim&#12391;merb.vim&#12434;&#20351;&#12387;&#12390;&#12356;&#12427;&#22580;&#21512;&#12289;.builder&#12398;filetype
&#12434;&#35469;&#35672;&#12373;&#12379;&#12427;&#12383;&#12417;&#12395;&#12289;.vim/ftdetect/merb.vim&#12398;&#20013;&#12391;&#12289;
&#20197;&#19979;&#12398;&#65297;&#34892;&#12434;&#21152;&#12360;&#12427;&#12392;&#12289;&#27491;&#12375;&#12367;&#12501;&#12449;&#12452;&#12523;&#12479;&#12452;&#12503;&#12434;&#35469;&#35672;&#12375;&#12390;&#12367;&#12428;&#12414;&#12377;&#12290;

pre&gt;&gt;
au BufRead,BufNewFile */app/{mailers/,}views/*.builder set ft=ruby.merb_controller
&lt;&lt;--</body>
    <cached-tag-list>merb atom feed memo</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-27T06:41:30+00:00</created-at>
    <daily-archive-id type="integer">1013</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1252</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-27T06:17:00+00:00</published-at>
    <secret>118938bc-957c-424a-92b7-b1bcf944e4c4</secret>
    <title>Merb&#12391;Atom&#12501;&#12451;&#12540;&#12489;&#12434;&#37197;&#20449;&#12377;&#12427;&#25163;&#38918;&#12398;&#12513;&#12514;</title>
    <updated-at type="datetime">2009-01-27T06:41:30+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
  <article>
    <body>Twitter&#30340;&#12394;&#21205;&#30011;&#20849;&#26377;&#12469;&#12452;&#12488;&#12391;&#12354;&#12427;
[Seesmic](http://seesmic.com)
&#12391;&#12399;&#12289;Merb&#12434;&#20351;&#12387;&#12390;&#12356;&#12427;&#12424;&#12358;&#12391;&#12377;&#12290;

![ss](http://img.skitch.com/20090126-8ewkq9m2g3s5htd3sbk9cb7wst.png)

&#12503;&#12525;&#12480;&#12463;&#12471;&#12519;&#12531;&#12391;&#20351;&#12387;&#12390;&#12427;&#12392;&#12371;&#12429;&#12418;&#22679;&#12360;&#12390;&#12365;&#12414;&#12375;&#12383;&#12397;&#12290;

&#24330;&#31038;&#12391;&#12399;&#12289;Pok&#233;Dia&#12398;&#31069;&#26085;&#24773;&#22577;&#20849;&#26377;&#12469;&#12540;&#12499;&#12473;&#12398;&#12496;&#12483;&#12463;&#12456;&#12531;&#12489;&#12392;&#12394;&#12427;
Web&#12469;&#12540;&#12499;&#12473;&#12434;&#12289;Merb&#12391;&#38283;&#30330;&#20013;&#12391;&#12377;&#12290;</body>
    <cached-tag-list>merb memo</cached-tag-list>
    <comments-count type="integer">0</comments-count>
    <created-at type="datetime">2009-01-27T04:35:31+00:00</created-at>
    <daily-archive-id type="integer">1013</daily-archive-id>
    <filter-type>blue_stole</filter-type>
    <id type="integer">1251</id>
    <monthly-archive-id type="integer">127</monthly-archive-id>
    <pdf-digest nil="true"></pdf-digest>
    <permalink nil="true"></permalink>
    <published-at type="datetime">2009-01-27T04:35:39+00:00</published-at>
    <secret>83f2a1d5-0d85-4249-9a60-78687f531045</secret>
    <title>Seesmic&#12399;Merb&#12434;&#20351;&#12387;&#12390;&#12356;&#12427;</title>
    <updated-at type="datetime">2009-01-27T04:35:39+00:00</updated-at>
    <user-id type="integer">1</user-id>
  </article>
</articles>
