<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1,133 @@
+## A little blog (&#190;&#174;&#164;&#181;&#164;&#202;&#165;&#214;&#165;&#237;&#165;&#176;)
+
+#### What will be covered (&#164;&#179;&#164;&#206;&#192;&#225;&#164;&#199;&#188;&#232;&#164;&#234;&#176;&#183;&#164;&#166;&#198;&#226;&#205;&#198;)
+
+ * Setting up the example blog application
+ * Creating the models
+ * Configuring your routes
+ * RESTful controllers
+ * Some of the view helpers in `merb_helpers`
+ * Configuring and sending emails
+
+ * &#165;&#181;&#165;&#243;&#165;&#215;&#165;&#235;&#164;&#200;&#164;&#202;&#164;&#235;&#165;&#214;&#165;&#237;&#165;&#176;&#165;&#162;&#165;&#215;&#165;&#234;&#165;&#177;&#161;&#188;&#165;&#183;&#165;&#231;&#165;&#243;&#164;&#206;&#192;&#223;&#196;&#234;
+ * &#165;&#226;&#165;&#199;&#165;&#235;&#164;&#206;&#186;&#238;&#192;&#174;
+ * &#165;&#235;&#161;&#188;&#165;&#198;&#165;&#163;&#165;&#243;&#165;&#176;&#164;&#206;&#192;&#223;&#196;&#234;&#185;&#189;&#192;&#174;
+ * RESTful &#164;&#202;&#165;&#179;&#165;&#243;&#165;&#200;&#165;&#237;&#161;&#188;&#165;&#233;
+ * `merb_helpers` &#164;&#199;&#196;&#234;&#181;&#193;&#164;&#181;&#164;&#236;&#164;&#198;&#164;&#164;&#164;&#235;&#165;&#211;&#165;&#229;&#161;&#188;&#165;&#216;&#165;&#235;&#165;&#209;&#164;&#206;&#164;&#164;&#164;&#175;&#164;&#196;&#164;&#171;
+ * &#197;&#197;&#187;&#210;&#165;&#225;&#161;&#188;&#165;&#235;&#164;&#206;&#193;&#247;&#191;&#174;&#164;&#200;&#164;&#189;&#164;&#206;&#164;&#191;&#164;&#225;&#164;&#206;&#192;&#223;&#196;&#234;&#185;&#189;&#192;&#174;
+
+In the examples, we'll be developing a small blogging application. It's a good
+idea to grab the source code from [http://github.com/deimos1986/book_mdar/tree/master/code](http://github.com/deimos1986/book_mdar/tree/master/code), 
+so you can follow along with the examples.
+
+&#165;&#181;&#165;&#243;&#165;&#215;&#165;&#235;&#164;&#199;&#164;&#207;&#161;&#162;&#190;&#174;&#164;&#181;&#164;&#164;&#165;&#214;&#165;&#237;&#165;&#176;&#165;&#162;&#165;&#215;&#165;&#234;&#165;&#177;&#161;&#188;&#165;&#183;&#165;&#231;&#165;&#243;&#164;&#242;&#186;&#238;&#192;&#174;&#164;&#183;&#164;&#222;&#164;&#185;&#161;&#163;
+&#165;&#189;&#161;&#188;&#165;&#185;&#165;&#179;&#161;&#188;&#165;&#201;&#164;&#207; [http://github.com/deimos1986/book_mdar/tree/master/code](http://github.com/deimos1986/book_mdar/tree/master/code) &#164;&#171;&#164;&#233;&#188;&#232;&#164;&#195;&#164;&#198;&#164;&#179;&#164;&#236;&#164;&#222;&#164;&#185;&#164;&#206;&#164;&#199;&#161;&#162;&#165;&#181;&#165;&#243;&#165;&#215;&#165;&#235;&#164;&#203;&#177;&#232;&#164;&#195;&#164;&#198;&#187;&#238;&#164;&#185;&#164;&#179;&#164;&#200;&#164;&#172;&#164;&#199;&#164;&#173;&#164;&#222;&#164;&#185;&#161;&#163;
+
+First of all, let's define some of the functionality we would expect from any 
+blogging application. 
+
+&#164;&#222;&#164;&#186;&#186;&#199;&#189;&#233;&#164;&#203;&#161;&#162;&#165;&#214;&#165;&#237;&#165;&#176;&#165;&#162;&#165;&#215;&#165;&#234;&#165;&#177;&#161;&#188;&#165;&#183;&#165;&#231;&#165;&#243;&#164;&#200;&#164;&#183;&#164;&#198;&#185;&#205;&#164;&#168;&#164;&#233;&#164;&#236;&#164;&#235;&#181;&#161;&#199;&#189;&#164;&#242;&#164;&#164;&#164;&#175;&#164;&#196;&#164;&#171;&#196;&#234;&#181;&#193;&#164;&#183;&#164;&#222;&#164;&#183;&#164;&#231;&#164;&#166;&#161;&#163;
+
+* Publishing posts
+* Leaving comments
+* Sending email notifications
+* Attaching images
+* Authentication
+
+* &#197;&#234;&#185;&#198;&#164;&#242;&#184;&#248;&#179;&#171;&#164;&#185;&#164;&#235;
+* &#165;&#179;&#165;&#225;&#165;&#243;&#165;&#200;&#164;&#242;&#187;&#196;&#164;&#185;
+* &#197;&#197;&#187;&#210;&#165;&#225;&#161;&#188;&#165;&#235;&#164;&#199;&#196;&#204;&#195;&#206;&#164;&#185;&#164;&#235;
+* &#178;&#232;&#193;&#252;&#164;&#242;&#197;&#186;&#201;&#213;&#164;&#185;&#164;&#235;
+* &#199;&#167;&#190;&#218;&#164;&#185;&#164;&#235;
+
+We're going to call our app `golb`. Think of it as a backward blog. Feel free 
+to change the name of your app, but if you do, remember to replace the word
+`golb` with the name of your app.
+
+&#164;&#179;&#164;&#206;&#165;&#162;&#165;&#215;&#165;&#234;&#165;&#177;&#161;&#188;&#165;&#183;&#165;&#231;&#165;&#243;&#164;&#207;&#161;&#162;`golb` &#164;&#200;&#164;&#164;&#164;&#166;&#204;&#190;&#193;&#176;&#164;&#203;&#164;&#185;&#164;&#235;&#164;&#179;&#164;&#200;&#164;&#203;&#164;&#183;&#164;&#222;&#164;&#185;&#161;&#163;
+&#165;&#208;&#165;&#195;&#165;&#175;&#165;&#239;&#161;&#188;&#165;&#201;&#164;&#206;&#165;&#214;&#165;&#237;&#165;&#176;&#164;&#200;&#164;&#183;&#164;&#198;&#185;&#205;&#164;&#168;&#164;&#198;&#164;&#175;&#164;&#192;&#164;&#181;&#164;&#164;&#161;&#204;&#204;&#245;&#195;&#237;: ???&#161;&#205;&#161;&#163;
+&#165;&#162;&#165;&#215;&#165;&#234;&#164;&#206;&#204;&#190;&#193;&#176;&#164;&#207;&#188;&#171;&#205;&#179;&#164;&#203;&#202;&#209;&#185;&#185;&#164;&#183;&#164;&#198;&#185;&#189;&#164;&#164;&#164;&#222;&#164;&#187;&#164;&#243;&#164;&#172;&#161;&#162;&#202;&#209;&#185;&#185;&#164;&#183;&#164;&#191;&#190;&#236;&#185;&#231;&#164;&#207; `golb` &#164;&#200;&#164;&#164;&#164;&#166;&#195;&#177;&#184;&#236;&#164;&#172;&#189;&#208;&#164;&#198;&#164;&#173;&#164;&#191;&#164;&#233;&#202;&#209;&#185;&#185;&#184;&#229;&#164;&#206;&#204;&#190;&#193;&#176;&#164;&#203;&#195;&#214;&#164;&#173;&#180;&#185;&#164;&#168;&#164;&#198;&#164;&#175;&#164;&#192;&#164;&#181;&#164;&#164;&#161;&#163;
+
+To make a new app we'll use the command
+
+&#191;&#183;&#164;&#183;&#164;&#164;&#165;&#162;&#165;&#215;&#165;&#234;&#164;&#242;&#186;&#238;&#164;&#235;&#164;&#203;&#164;&#207;&#161;&#162;&#188;&#161;&#164;&#206;&#165;&#179;&#165;&#222;&#165;&#243;&#165;&#201;&#164;&#242;&#187;&#200;&#164;&#164;&#164;&#222;&#164;&#185;&#161;&#163;
+
+    merb-gen app golb
+
+Set up the configuration files for your application, this lets Merb know what 
+gems to load for plugins and generators.
+
+&#188;&#171;&#202;&#172;&#164;&#206;&#165;&#162;&#165;&#215;&#165;&#234;&#165;&#177;&#161;&#188;&#165;&#183;&#165;&#231;&#165;&#243;&#164;&#206;&#192;&#223;&#196;&#234;&#185;&#189;&#192;&#174;&#165;&#213;&#165;&#161;&#165;&#164;&#165;&#235;&#164;&#242;&#192;&#223;&#196;&#234;&#164;&#183;&#164;&#198;&#164;&#175;&#164;&#192;&#164;&#181;&#164;&#164;&#161;&#163;
+&#164;&#189;&#164;&#166;&#164;&#185;&#164;&#235;&#164;&#179;&#164;&#200;&#164;&#199;&#161;&#162;&#165;&#215;&#165;&#233;&#165;&#176;&#165;&#164;&#165;&#243;&#164;&#228;&#165;&#184;&#165;&#167;&#165;&#205;&#165;&#236;&#161;&#188;&#165;&#191;&#164;&#199;&#164;&#201;&#164;&#206; gems &#164;&#242;&#198;&#201;&#164;&#223;&#185;&#254;&#164;&#224;&#164;&#206;&#164;&#171;&#161;&#162;Merb &#164;&#207;&#195;&#206;&#164;&#235;&#164;&#179;&#164;&#200;&#164;&#172;&#164;&#199;&#164;&#173;&#164;&#235;&#164;&#232;&#164;&#166;&#164;&#203;&#164;&#202;&#164;&#234;&#164;&#222;&#164;&#185;&#161;&#163;
+
+`config/init.rb`
+
+    use_orm :datamapper
+
+    use_test :rspec
+
+  	dependencies &quot;dm-validations&quot;
+
+
+Now add a `config/database.yml` file with the following:
+
+&#164;&#222;&#164;&#191; `config/database.yml` &#165;&#213;&#165;&#161;&#165;&#164;&#165;&#235;&#164;&#242;&#188;&#161;&#164;&#206;&#164;&#232;&#164;&#166;&#164;&#202;&#198;&#226;&#205;&#198;&#164;&#199;&#186;&#238;&#192;&#174;&#164;&#183;&#164;&#198;&#164;&#175;&#164;&#192;&#164;&#181;&#164;&#164;:
+
+    ---
+    # This is a sample database file for the DataMapper ORM
+    development: &amp;defaults
+      # These are the settings for repository :default
+      adapter:  mysql
+      database: golb
+      encoding: utf8
+      username: root
+      password: 
+      host:     localhost
+
+      # Add more repositories
+      # repositories:
+      #   repo1:
+      #     adapter:  postgresql
+      #     database: sample_development
+      #     username: the_user
+      #     password: secrets
+      #     host:     localhost
+      #   repo2:
+      #     ...
+
+    test:
+      &lt;&lt;:       *defaults
+      database: golb_test
+
+      # repositories:
+      #   repo1:
+      #     database: sample_development
+
+    production:
+      &lt;&lt;:       *defaults
+      database: golb_production
+
+      # repositories:
+      #   repo1:
+      #     database: sample_development
+  
+	---
+	    
+	    
+Note: DataMapper has a rake task to generate a default database.yml file:
+
+&#195;&#237;&#176;&#213;: DataMapper &#164;&#203;&#164;&#207;&#161;&#162;&#165;&#199;&#165;&#213;&#165;&#169;&#165;&#235;&#165;&#200;&#164;&#206; database.yml &#165;&#213;&#165;&#161;&#165;&#164;&#165;&#235;&#164;&#242;&#192;&#184;&#192;&#174;&#164;&#185;&#164;&#235; rake &#165;&#191;&#165;&#185;&#165;&#175;&#164;&#172;&#205;&#209;&#176;&#213;&#164;&#181;&#164;&#236;&#164;&#198;&#164;&#164;&#164;&#222;&#164;&#185;&#161;&#163;
+    
+    dm:db:database_yaml
+    
+You can also put a database URI in development.rb (or other environments) just as easily:
+
+&#164;&#222;&#164;&#191; development.rb (&#164;&#222;&#164;&#191;&#164;&#207;&#194;&#190;&#164;&#206;&#180;&#196;&#182;&#173;&#192;&#223;&#196;&#234;&#165;&#213;&#165;&#161;&#165;&#164;&#165;&#235;) &#164;&#203;&#165;&#199;&#161;&#188;&#165;&#191;&#165;&#217;&#161;&#188;&#165;&#185; URI &#164;&#242;&#192;&#223;&#196;&#234;&#164;&#185;&#164;&#235;&#164;&#179;&#164;&#200;&#164;&#226;&#180;&#202;&#195;&#177;&#164;&#199;&#164;&#185;:
+
+    Merb::BootLoader.after_app_loads do
+      DataMapper.setup(:default, 'mysql://user:pass@localhost/database')
+    end
+      
+Now we're ready to rock and roll ...
+
+&#164;&#179;&#164;&#179;&#164;&#222;&#164;&#199;&#164;&#173;&#164;&#191;&#164;&#233;&#161;&#162;&#165;&#237;&#165;&#195;&#165;&#175;&#165;&#243;&#165;&#237;&#161;&#188;&#165;&#235;&#164;&#185;&#164;&#235;&#189;&#224;&#200;&#247;&#164;&#207;&#164;&#199;&#164;&#173;&#164;&#222;&#164;&#183;&#164;&#191;...</diff>
      <filename>book/source/Chapters/4_A_Little_Blog/1_Introduction.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6051c61511517fc83d5f48c6dcf21a5b1cc9804e</id>
    </parent>
  </parents>
  <author>
    <name>Makoto Kuwata</name>
    <email>kwa@kuwata-lab.com</email>
  </author>
  <url>http://github.com/kwatch/book_mdar/commit/a90fb4175f1b8c95b7b91c1f8dc8f3d6692d7375</url>
  <id>a90fb4175f1b8c95b7b91c1f8dc8f3d6692d7375</id>
  <committed-date>2008-09-23T04:55:12-07:00</committed-date>
  <authored-date>2008-09-23T04:55:12-07:00</authored-date>
  <message>Translated Chapter 4-1 Introduction.</message>
  <tree>95b2b625b8c5685b4131f0bd0d8879b260ba80f5</tree>
  <committer>
    <name>Makoto Kuwata</name>
    <email>kwa@kuwata-lab.com</email>
  </committer>
</commit>
