<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -51,7 +51,7 @@ task :create_chapter_tocs do
       end
     end
   else
-    chapters = Dir[&quot;#{Dir.pwd}/book-content/#{ENV[&quot;LANG&quot;]}/*-*&quot;].entries.map{|f| File.basename(f)[/\d-(.*)/, 1]}
+    chapters = Dir[&quot;#{Dir.pwd}/book-content/#{ENV[&quot;LANG&quot;]}/*-*&quot;].entries.map{|f| File.basename(f)[/\d+-(.*)/, 1]}
     chapters.each do |chapter|
       save_chapter_toc(chapter, ENV[&quot;LANG&quot;])
     end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,7 @@ class Pages &lt; Application
   
   def table_of_content
     toc_file = Dir[&quot;#{Merb.root}/book-content/#{language}/toc.*&quot;].entries.first
+    raise NotFound unless toc_file
     text = File.open(toc_file).read
     render ::Maruku::new(text).to_html
   end</diff>
      <filename>app/controllers/pages.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ module Merb
 
     # Returns links to the previous and next pages.
     def page_nav_links(format = 'markdown')
-      return if params[:action] != 'show' # Don't need navigation for the TOC (index).
+      return if params[:action] != 'show' || @page.nil? # Don't need navigation for the TOC (index).
       links = []
       links &lt;&lt; previous_page_url
       # Stick a link to the TOC in the middle of the array.</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,8 +13,9 @@ Thank you all!
 * [Yehuda   Katz        ](http://yehudakatz.com)
 * [Makoto   Kuwata      ](http://www.kuwata-lab.com/)
 * [Rich     Morin       ](http://cfcl.com/rdm)
-* [Carlo		Pecchia			](http://carlopecchia.eu)
+* [Carlo    Pecchia     ](http://carlopecchia.eu)
 * [Markus   Prinz       ](http://blog.nuclearsquid.com/)
 * [Foy      Savas       ](http://foysavas.com/)
 * [Kurt     Schrader    ](http://kurt.karmalab.org/)
-* [Arthur   Zapparoli   ](http://arthurgeek.net/)
\ No newline at end of file
+* [Arthur   Zapparoli   ](http://arthurgeek.net/)
+* [Jai-Gouk Kim         ](http://jaigouk.blogspot.com/)
\ No newline at end of file</diff>
      <filename>book-content/en/0-front-matter/2-contributors.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@
 
  &lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-active_record/up'&gt;Setting Up Active Record&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
 
-&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-active_record/queries'&gt;Database Queries&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
\ No newline at end of file
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-active_record/queries'&gt;Database Queries&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; 
\ No newline at end of file</diff>
      <filename>book-content/en/4-interacting-with-the-database-active_record/toc.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,13 @@
 # interacting-with-the-database-sequel
 
-1. [Installation and setup](/interacting-with-the-database-sequel/setting-up)
-1. [Database Migrations](/interacting-with-the-database-sequel/migrations)
-1. [Data Retrieval and Manipulation](/interacting-with-the-database-sequel/data-retrieval-and-manipulation)
-1. [Model Associations](/interacting-with-the-database-sequel/model-associations)
-1. [Model Validation](/interacting-with-the-database-sequel/model-validation)
-1. [Sequel Plugins](/interacting-with-the-database-sequel/sequel-plugins)
+ &lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/up'&gt;Installation and setup&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/up#generating_a_project_with_sequel'&gt;Generating a project with Sequel&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
 
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/migrations'&gt;Database Migrations&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
 
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation'&gt;Database Retreival and Manipulation&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation#finding_records'&gt;Finding records&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation#the_other_three_letters_in_crud'&gt;The Other Three Letters in CRUD&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation#create'&gt;Create&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation#update'&gt;Update&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/manipulation#delete'&gt;Delete&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
+
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/associations'&gt;Model Associations&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/associations#one_to_many'&gt;One to Many&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/associations#many_to_one'&gt;Many to One&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/associations#many_to_many'&gt;Many to Many&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/associations#one_to_one'&gt;One to One&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
+
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/validation'&gt;Model Validation&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
+
+&lt;ul class='toc'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins'&gt;Sequel Plugins&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins#useful_plugins'&gt;Useful Plugins&lt;/a&gt;&lt;ul style='list-style: none;'&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins#sequel_timestamped'&gt;sequel_timestamped&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins#sequel_notnaughty'&gt;sequel_notnaughty&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins#sequel_polymorphic'&gt;sequel_polymorphic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/en/interacting-with-the-database-sequel/plugins#sequel_taggable'&gt;sequel_taggable&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt; 
\ No newline at end of file</diff>
      <filename>book-content/en/5-interacting-with-the-database-sequel/toc.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,26 @@
 Merb.logger.info(&quot;Compiling routes...&quot;)
 Merb::Router.prepare do
+  
+  # http://localhost:4000/
+  # http://localhost:4000/en/
+  # http://localhost:4000/fr
+  # http://localhost:4000/table-of-contents
+  # http://localhost:4000/en/table-of-contents
+  # http://localhost:4000/getting-started/install-instructions
+  # http://localhost:4000/en/getting-started/install-instructions
 
-  match('(/:language)/table-of-contents',
-        :language =&gt; /^[a-z]{2}$/).
-    to(:controller =&gt; 'pages', :action =&gt; 'index').name(:toc)
-
+  match('(/:language)/table-of-contents', 
+           :language =&gt; /^[a-z]{2}$/).to(:controller =&gt; 'pages', :action =&gt; 'index').name(:toc)
+  
   match('(/:language)/:chapter(/:page_name)',
         :language =&gt; /^[a-z]{2}$/,
-        :chapter  =&gt; /[^\/]{3,}/).
-    to(:controller =&gt; 'pages', :action =&gt; 'show').name(:page)
-
-  # default_routes
-
-  match('/(:language)', :language =&gt; /^[a-z]{2}$/).
-    to(:controller =&gt; 'pages', :action =&gt; 'index')
+        :chapter  =&gt; /[^\/]{3,}/).to(:controller =&gt; 'pages', :action =&gt; 'show').name(:page)
+  
+  match('/(:language)', :language =&gt; /^[a-z]{2}$/).to(:controller =&gt; 'pages', :action =&gt; 'index')
+  
+  # match('(/:language)(/)', :language =&gt; /^[a-z]{2}$/).to(:controller =&gt; &quot;pages&quot;) do
+  #     match(&quot;:chapter(/:page_name)&quot;, :chapter =&gt; %r'[^/.;?]{3,}').to(:action =&gt; &quot;show&quot;).name(:page)
+  #     match(&quot;(table-of-contents)&quot;).name(:toc)
+  # end
+  
 end
\ No newline at end of file</diff>
      <filename>config/router.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>book-content/en/5-testing-your-application/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/6-merb-more/toc.markdown</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>4af777aa9254a3fa662688d89be30ac277dd8c34</id>
    </parent>
  </parents>
  <author>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </author>
  <url>http://github.com/schacon/merb-book/commit/7fe2a798736f1005ef161512e20669b2ee9341c9</url>
  <id>7fe2a798736f1005ef161512e20669b2ee9341c9</id>
  <committed-date>2009-01-23T15:45:27-08:00</committed-date>
  <authored-date>2009-01-23T15:45:27-08:00</authored-date>
  <message>fixed the tocs and specs</message>
  <tree>8c64007adf993cfce9747f0fbbd5ebf02b9ba0ff</tree>
  <committer>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </committer>
</commit>
