<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/models/merb/session.rb</filename>
    </added>
    <added>
      <filename>app/views/layout/application.html.erb</filename>
    </added>
    <added>
      <filename>autotest/discover.rb</filename>
    </added>
    <added>
      <filename>autotest/merb.rb</filename>
    </added>
    <added>
      <filename>autotest/merb_rspec.rb</filename>
    </added>
    <added>
      <filename>public/favicon.ico</filename>
    </added>
    <added>
      <filename>public/robots.txt</filename>
    </added>
    <added>
      <filename>public/stylesheets/common.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/idle.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/master.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/reset.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/rice.css</filename>
    </added>
    <added>
      <filename>spec/models/log/dm.log</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,21 @@
 .DS_Store
-public/javascripts/.DS_Store
-public/stylesheets/*.css
 log/*
-*.pid
-spec/models/log
-coverage/*
\ No newline at end of file
+tmp/*
+gems/cache/*
+TAGS
+*~
+.#*
+schema/schema.rb
+schema/*_structure.sql
+schema/*.sqlite3
+schema/*.sqlite
+schema/*.db
+*.sqlite
+*.sqlite3
+*.db
+src/*
+.hgignore
+.hg/*
+.svn/*
+
+spec/model/*.log</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,26 +1,25 @@
 require 'rubygems'
-Gem.clear_paths
-Gem.path.unshift(File.join(File.dirname(__FILE__), &quot;gems&quot;))
-
-require 'rake'
 require 'rake/rdoctask'
 require 'rake/testtask'
 require 'spec/rake/spectask'
-require 'fileutils'
+
 require 'merb-core'
-require 'rubigen'
+require 'merb-core/tasks/merb'
+
 include FileUtils
 
 # Load the basic runtime dependencies; this will include 
 # any plugins and therefore plugin rake tasks.
 init_env = ENV['MERB_ENV'] || 'rake'
 Merb.load_dependencies(:environment =&gt; init_env)
-
+     
 # Get Merb plugins and dependencies
 Merb::Plugins.rakefiles.each { |r| require r } 
 
-require 'vlad'
-Vlad.load( :app =&gt; nil, :scm =&gt; 'git' )
+# Load any app level custom rakefile extensions from lib/tasks
+tasks_path = File.join(File.dirname(__FILE__), &quot;lib&quot;, &quot;tasks&quot;)
+rake_files = Dir[&quot;#{tasks_path}/*.rake&quot;]
+rake_files.each{|rake_file| load rake_file }
 
 desc &quot;start runner environment&quot;
 task :merb_env do
@@ -28,10 +27,6 @@ task :merb_env do
 end
 
 ##############################################################################
-# SVN
-##############################################################################
-
-desc &quot;Add new files to subversion&quot;
-task :svn_add do
-   system &quot;svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add&quot;
-end
\ No newline at end of file
+# ADD YOUR CUSTOM TASKS IN /lib/tasks
+# NAME YOUR RAKE FILES file_name.rake
+##############################################################################
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -10,13 +10,4 @@ class Exceptions &lt; Application
     render :format =&gt; :html
   end
 
-  # handle 500 errors
-  def internal_server_error
-    LoggedException.create_from_controller( self )
-
-    # Required for rendering the exception message - replace for production
-    @exception = params[:exception]
-    render :format =&gt; :html, :layout =&gt; :nil
-  end
-
 end
\ No newline at end of file</diff>
      <filename>app/controllers/exceptions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,34 +1,5 @@
 module Merb
   module GlobalHelpers
-
-    def print_flash
-      return unless flash[:error] || flash[:notice]
-      klass = flash[:error] ? 'errors' : 'notice'
-      out = &lt;&lt;-EOS
-      &lt;div class=&quot;#{ klass }&quot; id=&quot;flash&quot;&gt;
-        #{ flash[:error] || flash[:notice] }
-      &lt;/div&gt;
-      EOS
-      out &lt;&lt; &quot;&lt;script type='text/javascript'&gt;setTimeout( function(){ $('#flash').fadeOut(2*1000); }, 5*1000 );&lt;/script&gt;&quot; if flash[:notice]
-      out
-    end
-
-    def print_date( date )
-      date.strftime('&lt;div class=&quot;date&quot;&gt;&lt;span class=&quot;month&quot;&gt;%b&lt;/span&gt;&lt;span class=&quot;day&quot;&gt;%d&lt;/span&gt;&lt;/div&gt;')
-    end
-
-    def blog_by_date_url( blog )
-      url(:controller =&gt; '')
-    end
-
-    def pluralize( count, word )
-      '%d %s' % [count, count == 1 ? word : word.pluralize]
-    end
-
-    def to_rfc822( datetime )
-      d = datetime
-      ::Time.local(d.year, d.month, d.day, d.hour, d.min, d.sec).rfc822
-    end
-
+    # helpers defined here available to all views.  
   end
-end    
\ No newline at end of file
+end</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -131,7 +131,7 @@
 		&lt;div class=&quot;header&quot;&gt;
 			&lt;h1&gt;&lt;%= @exception_name %&gt; &lt;sup class=&quot;error_&lt;%= @exception.class::STATUS %&gt;&quot;&gt;&lt;%= @exception.class::STATUS %&gt;&lt;/sup&gt;&lt;/h1&gt;
 			&lt;% if show_details = ::Merb::Config[:exception_details] -%&gt;
-				&lt;h2&gt;&lt;%= @exception.message %&gt;&lt;/h2&gt;
+				&lt;h2&gt;&lt;%=h @exception.message %&gt;&lt;/h2&gt;
 			&lt;% else -%&gt;
 				&lt;h2&gt;Sorry about that...&lt;/h2&gt;
 			&lt;% end -%&gt;</diff>
      <filename>app/views/exceptions/internal_server_error.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -15,24 +15,49 @@
     &lt;h3&gt;Why am I seeing this page?&lt;/h3&gt;
     &lt;p&gt;Merb couldn't find an appropriate content_type to return,
       based on what you said was available via provides() and
-      what the client requested.  For more information, visit
-      http://merbivore.com/fixing_406_issues
-    &lt;/p&gt; 
-    
+      what the client requested.&lt;/p&gt;
+
+    &lt;h3&gt;How to add a mime-type&lt;/h3&gt;
+    &lt;pre&gt;&lt;code&gt;
+      Merb.add_mime_type :pdf, :to_pdf, %w[application/pdf], &amp;quot;Content-Encoding&amp;quot; =&amp;gt; &amp;quot;gzip&amp;quot;
+    &lt;/code&gt;&lt;/pre&gt;
+    &lt;h3&gt;What this means is:&lt;/h3&gt;
+    &lt;ul&gt;
+      &lt;li&gt;Add a mime-type for :pdf&lt;/li&gt;
+      &lt;li&gt;Register the method for converting objects to PDF as &lt;code&gt;#to_pdf&lt;/code&gt;.&lt;/li&gt;
+      &lt;li&gt;Register the incoming mime-type &quot;Accept&quot; header as &lt;code&gt;application/pdf&lt;/code&gt;.&lt;/li&gt;
+      &lt;li&gt;Specify a new header for PDF types so it will set &lt;code&gt;Content-Encoding&lt;/code&gt; to gzip.&lt;/li&gt;
+    &lt;/ul&gt;
+
+    &lt;h3&gt;You can then do:&lt;/h3&gt;
+    &lt;pre&gt;&lt;code&gt;
+      class Foo &amp;lt; Application
+        provides :pdf
+      end
+    &lt;/code&gt;&lt;/pre&gt;
+
     &lt;h3&gt;Where can I find help?&lt;/h3&gt;
     &lt;p&gt;If you have any questions or if you can't figure something out, please take a
-      look at our &lt;a href=&quot;http://merb.devjavu.com/&quot;&gt; project development page&lt;/a&gt; or,
-      feel free to come chat at irc.freenode.net, channel #merb.&lt;/p&gt;
+      look at our &lt;a href=&quot;http://merbivore.com/&quot;&gt; project page&lt;/a&gt;,
+      feel free to come chat at irc.freenode.net, channel #merb,
+      or post to &lt;a href=&quot;http://groups.google.com/group/merb&quot;&gt;merb mailing list&lt;/a&gt;
+      on Google Groups.&lt;/p&gt;
+      
+    &lt;h3&gt;What if I've found a bug?&lt;/h3&gt;
+    &lt;p&gt;If you want to file a bug or make your own contribution to Merb,
+      feel free to register and create a ticket at our
+      &lt;a href=&quot;http://merb.lighthouseapp.com/&quot;&gt;project development page&lt;/a&gt;
+      on Lighthouse.&lt;/p&gt;
 
     &lt;h3&gt;How do I edit this page?&lt;/h3&gt;
-    &lt;p&gt;You can change what people see when this happens byy editing &lt;tt&gt;app/views/exceptions/not_found.html.erb&lt;/tt&gt;.&lt;/p&gt; 
-  
+    &lt;p&gt;You can change what people see when this happens by editing &lt;tt&gt;app/views/exceptions/not_acceptable.html.erb&lt;/tt&gt;.&lt;/p&gt; 
+
   &lt;/div&gt;
 
   &lt;div id=&quot;footer-container&quot;&gt;
     &lt;hr /&gt;
     &lt;div class=&quot;left&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;right&quot;&gt;&amp;copy; 2007 the merb dev team&lt;/div&gt;
+    &lt;div class=&quot;right&quot;&gt;&amp;copy; 2008 the merb dev team&lt;/div&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
   &lt;/div&gt;
 &lt;/div&gt;</diff>
      <filename>app/views/exceptions/not_acceptable.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -17,8 +17,16 @@
     
     &lt;h3&gt;Where can I find help?&lt;/h3&gt;
     &lt;p&gt;If you have any questions or if you can't figure something out, please take a
-      look at our &lt;a href=&quot;http://merb.devjavu.com/&quot;&gt; project development page&lt;/a&gt; or,
-      feel free to come chat at irc.freenode.net, channel #merb.&lt;/p&gt;
+      look at our &lt;a href=&quot;http://merbivore.com/&quot;&gt; project page&lt;/a&gt;,
+      feel free to come chat at irc.freenode.net, channel #merb,
+      or post to &lt;a href=&quot;http://groups.google.com/group/merb&quot;&gt;merb mailing list&lt;/a&gt;
+      on Google Groups.&lt;/p&gt;
+      
+    &lt;h3&gt;What if I've found a bug?&lt;/h3&gt;
+    &lt;p&gt;If you want to file a bug or make your own contribution to Merb,
+      feel free to register and create a ticket at our
+      &lt;a href=&quot;http://merb.lighthouseapp.com/&quot;&gt;project development page&lt;/a&gt;
+      on Lighthouse.&lt;/p&gt;
 
     &lt;h3&gt;How do I edit this page?&lt;/h3&gt;
     &lt;p&gt;You're seeing this page because you need to edit the following files:
@@ -33,7 +41,7 @@
   &lt;div id=&quot;footer-container&quot;&gt;
     &lt;hr /&gt;
     &lt;div class=&quot;left&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;right&quot;&gt;&amp;copy; 2007 the merb dev team&lt;/div&gt;
+    &lt;div class=&quot;right&quot;&gt;&amp;copy; 2008 the merb dev team&lt;/div&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
   &lt;/div&gt;
 &lt;/div&gt;</diff>
      <filename>app/views/exceptions/not_found.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,12 @@
 Merb.logger.info(&quot;Loaded DEVELOPMENT Environment...&quot;)
 Merb::Config.use { |c|
   c[:exception_details] = true
+  c[:reload_templates] = true
   c[:reload_classes] = true
   c[:reload_time] = 0.5
+  c[:log_auto_flush ] = true
+  c[:ignore_tampered_cookies] = true
+  c[:log_level] = :debug
 }
 
 class Merb::Mailer</diff>
      <filename>config/environments/development.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,9 @@
 Merb.logger.info(&quot;Loaded PRODUCTION Environment...&quot;)
 Merb::Config.use { |c|
   c[:exception_details] = false
-  c[:reload_classes] = true
-  c[:reload_time] = 0.5
+  c[:reload_classes] = false
+  c[:log_level] = :error
+  c[:log_file] = Merb.log_path + &quot;/production.log&quot;
 }
 
 Merb::Mailer.config = {:sendmail_path =&gt; '/usr/sbin/sendmail'}</diff>
      <filename>config/environments/production.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ Merb.logger.info(&quot;Loaded TEST Environment...&quot;)
 Merb::Config.use { |c|
   c[:testing] = true
   c[:exception_details] = true
-  c[:reload_classes] = false
+  c[:log_auto_flush ] = true
 }
 
 class Merb::Mailer</diff>
      <filename>config/environments/test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,59 +1,51 @@
-# Make the app's &quot;gems&quot; directory a place where gems are loaded from
-Gem.clear_paths
-Gem.path.unshift(Merb.root / &quot;gems&quot;)
-
-# Make the app's &quot;lib&quot; directory a place where ruby files get &quot;require&quot;d from
-$LOAD_PATH.unshift(Merb.root / &quot;lib&quot;)
-
-Merb::Config.use do |c|
-  
-  ### Sets up a custom session id key, if you want to piggyback sessions of other applications
-  ### with the cookie session store. If not specified, defaults to '_session_id'.
-  c[:session_id_key] = '_fightinjoe_session_id'
-  c[:session_secret_key]  = '0089065a640a7408b2b9a75f360a58adce409a10'
-  c[:session_store] = 'cookie'
-end  
-
-### Merb doesn't come with database support by default.  You need
-### an ORM plugin.  Install one, and uncomment one of the following lines,
-### if you need a database.
-
-### Uncomment for DataMapper ORM
-use_orm :datamapper
-
-### Uncomment for ActiveRecord ORM
-# use_orm :activerecord
-
-### Uncomment for Sequel ORM
-# use_orm :sequel
-
-
-### This defines which test framework the generators will use
-### rspec is turned on by default
-###
-### Note that you need to install the merb_rspec if you want to ue
-### rspec and merb_test_unit if you want to use test_unit. 
-### merb_rspec is installed by default if you did gem install
-### merb.
-###
-# use_test :test_unit
-use_test :rspec
-
-### Add your other dependencies here
-
-# These are some examples of how you might specify dependencies.
-# 
-# dependencies &quot;RedCloth&quot;, &quot;merb_helpers&quot;
-# OR
-# dependency &quot;RedCloth&quot;, &quot;&gt; 3.0&quot;
-# OR
-# dependencies &quot;RedCloth&quot; =&gt; &quot;&gt; 3.0&quot;, &quot;ruby-aes-cext&quot; =&gt; &quot;= 1.0&quot;
+$KCODE = 'UTF8'
+
+#
+# ==== Structure of Merb initializer
+#
+# 1. Load paths.
+# 2. Dependencies configuration.
+# 3. Libraries (ORM, testing tool, etc) you use.
+# 4. Application-specific configuration.
+
+#
+# ==== Set up load paths
+#
+
+# Add the app's &quot;gems&quot; directory to the gem load path.
+# Note that the gems directory must mirror the structure RubyGems uses for
+# directories under which gems are kept.
+#
+# To conveniently set it up, use gem install -i &lt;merb_app_root/gems&gt;
+# when installing gems. This will set up the structure under /gems
+# automagically.
+#
+# An example:
+#
+# You want to bundle ActiveRecord and ActiveSupport with your Merb
+# application to be deployment environment independent. To do so,
+# install gems into merb_app_root/gems directory like this:
+#
+# gem install -i merb_app_root/gems activesupport-post-2.0.2.gem activerecord-post-2.0.2.gem
+#
+# Since RubyGems will search merb_app_root/gems for dependencies, order
+# in the statement above is important: we need to install ActiveSupport which
+# ActiveRecord depends on first.
+#
+# Remember that bundling of dependencies as gems with your application
+# makes it independent of the environment it runs in and is a very
+# good, encouraged practice to follow.
+
+# If you want modules and classes from libraries organized like
+# merbapp/lib/magicwand/lib/magicwand.rb to autoload,
+# uncomment this.
+# Merb.push_path(:lib, Merb.root / &quot;lib&quot;) # uses **/*.rb as path glob.
+
+# ==== Dependencies
 
 dependencies &quot;merb_helpers&quot;, &quot;merb_helpers_ext&quot;
-# http://jacobswanner.com/2008/2/14/merb-0-9-haml
 require 'merb-mailer'
 dependencies &quot;merb-haml&quot;, &quot;merb-cache&quot;, &quot;merb-parts&quot;, &quot;merb-builder&quot;
-# dependencies &quot;RedCloth&quot;
 
 # Frozen Gem dependencies
 dependencies &quot;merb_has_flash&quot;, 'paginator'
@@ -63,10 +55,37 @@ dependencies 'merb_router_behavior_ext', 'merb_exceptions_ext'
 
 require File.join(File.dirname(__FILE__), '..', 'lib', 'authenticated_system/authenticated_dependencies') rescue LoadError
 
-Merb::BootLoader.after_app_loads do
-  ### Add dependencies here that must load after the application loads:
+# These are a few, but not all, of the standard merb-more dependencies:
+#
+# dependency &quot;merb-action-args&quot;   # Provides support for querystring arguments to be passed in to controller actions
+# dependency &quot;merb-assets&quot;        # Provides link_to, asset_path, auto_link, image_tag methods (and lots more)
+# dependency &quot;merb-cache&quot;         # Provides your application with caching functions 
+# dependency &quot;merb-haml&quot;          # Adds rake tasks and the haml generators to your merb app
+# dependency &quot;merb-jquery&quot;        # Provides a #jquery method to insert jQuery code in to a content block
+# dependency &quot;merb-mailer&quot;        # Integrates mail support via Merb Mailer
+
+# These are a few, but not all, of the merb-plugin dependencies:
+#
+# dependency &quot;merb_helpers&quot;           # Provides the form, date/time, and other helpers
+# dependency &quot;merb_param_protection&quot;  # Lets you have better control over your query string params and param logging
+# dependency &quot;merb_stories&quot;           # Provides rspec helper methods for your application
+
+# Miscellaneous dependencies:
+#
+# Specify more than one dependency at a time with the #dependencies method:
+# dependencies &quot;RedCloth&quot;, &quot;BlueCloth&quot;
+
+# Specify a specific version of a dependency
+# dependency &quot;RedCloth&quot;, &quot;&gt; 3.0&quot;
+
+# Specify more than one dependency at a time as well as the version:
+# dependencies &quot;RedCloth&quot; =&gt; &quot;&gt; 3.0&quot;, &quot;BlueCloth&quot; =&gt; &quot;= 1.0.0&quot;
 
-  # dependency &quot;magic_admin&quot; # this gem uses the app's model classes
+# You can also add in dependencies after your application loads.
+Merb::BootLoader.after_app_loads do
+  # For example, the magic_admin gem uses the app's model classes. This requires that the models be 
+  # loaded already. So, we can put the magic_admin dependency here:
+  # dependency &quot;magic_admin&quot;
 
   Merb.add_mime_type(:rss, nil, ['text/xml'])
 
@@ -81,3 +100,117 @@ Merb::BootLoader.after_app_loads do
 
 end
 
+#
+# ==== Set up your ORM of choice
+#
+
+# Merb doesn't come with database support by default.  You need
+# an ORM plugin.  Install one, and uncomment one of the following lines,
+# if you need a database.
+
+# Uncomment for DataMapper ORM
+use_orm :datamapper
+
+# Uncomment for ActiveRecord ORM
+# use_orm :activerecord
+
+# Uncomment for Sequel ORM
+# use_orm :sequel
+
+
+#
+# ==== Pick what you test with
+#
+
+# This defines which test framework the generators will use.
+# RSpec is turned on by default.
+#
+# To use Test::Unit, you need to install the merb_test_unit gem.
+# To use RSpec, you don't have to install any additional gems, since
+# merb-core provides support for RSpec.
+#
+# use_test :test_unit
+use_test :rspec
+
+
+#
+# ==== Choose which template engine to use by default
+#
+
+# Merb can generate views for different template engines, choose your favourite as the default.
+
+use_template_engine :erb
+# use_template_engine :haml
+
+
+#
+# ==== Set up your basic configuration
+#
+
+# IMPORTANT:
+#
+# early on Merb boot init file is not yet loaded.
+# Thus setting PORT, PID FILE and ADAPTER using init file does not
+# make sense and only can lead to confusion because default settings
+# will be used instead.
+#
+# Please use command line options for them.
+# See http://wiki.merbivore.com/pages/merb-core-boot-process
+# if you want to know more.
+Merb::Config.use do |c|
+
+  # Sets up a custom session id key which is used for the session persistence
+  # cookie name.  If not specified, defaults to '_session_id'.
+  c[:session_id_key] = '_fightinjoe_session_id'
+
+  # The session_secret_key is only required for the cookie session store.
+  c[:session_secret_key]  = '0089065a640a7408b2b9a75f360a58adce409a10'
+
+  # There are various options here, by default Merb comes with 'cookie', 
+  # 'memory', 'memcache' or 'container'.  
+  # You can of course use your favorite ORM instead: 
+  # 'datamapper', 'sequel' or 'activerecord'.
+  c[:session_store] = 'cookie'
+end
+
+
+# ==== Tune your inflector
+
+# To fine tune your inflector use the word, singular_word and plural_word
+# methods of English::Inflect module metaclass.
+#
+# Here we define erratum/errata exception case:
+#
+# English::Inflect.word &quot;erratum&quot;, &quot;errata&quot;
+#
+# In case singular and plural forms are the same omit
+# second argument on call:
+#
+# English::Inflect.word 'information'
+#
+# You can also define general, singularization and pluralization
+# rules:
+#
+# Once the following rule is defined:
+# English::Inflect.rule 'y', 'ies'
+#
+# You can see the following results:
+# irb&gt; &quot;fly&quot;.plural
+# =&gt; flies
+# irb&gt; &quot;cry&quot;.plural
+# =&gt; cries
+#
+# Example for singularization rule:
+#
+# English::Inflect.singular_rule 'o', 'oes'
+#
+# Works like this:
+# irb&gt; &quot;heroes&quot;.singular
+# =&gt; hero
+#
+# Example of pluralization rule:
+# English::Inflect.singular_rule 'fe', 'ves'
+#
+# And the result is:
+# irb&gt; &quot;wife&quot;.plural
+# =&gt; wives</diff>
      <filename>config/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,12 @@
+
+# use PathPrefix Middleware if :path_prefix is set in Merb::Config
+if prefix = ::Merb::Config[:path_prefix]
+  use Merb::Rack::PathPrefix, prefix
+end
+
+# comment this out if you are running merb behind a load balancer
+# that serves static files
+use Merb::Rack::Static, Merb.dir_for(:public)
+
+# this is our main merb application
 run Merb::Rack::Application.new
\ No newline at end of file</diff>
      <filename>config/rack.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,57 +2,61 @@
 #
 # You can route a specific URL to a controller / action pair:
 #
-#   r.match(&quot;/contact&quot;).
+#   match(&quot;/contact&quot;).
 #     to(:controller =&gt; &quot;info&quot;, :action =&gt; &quot;contact&quot;)
 #
 # You can define placeholder parts of the url with the :symbol notation. These
 # placeholders will be available in the params hash of your controllers. For example:
 #
-#   r.match(&quot;/books/:book_id/:action&quot;).
+#   match(&quot;/books/:book_id/:action&quot;).
 #     to(:controller =&gt; &quot;books&quot;)
 #   
 # Or, use placeholders in the &quot;to&quot; results for more complicated routing, e.g.:
 #
-#   r.match(&quot;/admin/:module/:controller/:action/:id&quot;).
+#   match(&quot;/admin/:module/:controller/:action/:id&quot;).
 #     to(:controller =&gt; &quot;:module/:controller&quot;)
 #
+# You can specify conditions on the placeholder by passing a hash as the second
+# argument of &quot;match&quot;
+#
+#   match(&quot;/registration/:course_name&quot;, :course_name =&gt; /^[a-z]{3,5}-\d{5}$/).
+#     to(:controller =&gt; &quot;registration&quot;)
+#
 # You can also use regular expressions, deferred routes, and many other options.
 # See merb/specs/merb/router.rb for a fairly complete usage sample.
 
 Merb.logger.info(&quot;Compiling routes...&quot;)
-Merb::Router.prepare do |r|
+Merb::Router.prepare do
   # RESTful routes
-  r.resources :blogs do |b|
+  resources :blogs do |b|
     b.resources :comments
   end
 
-  r.namespace :admin do |admin|
+  namespace :admin do |admin|
     admin.resources :blogs
   end
-
-  r.resources :comments
-
-  r.match(%r{/(\d+)/(\d+)/([a-zA-Z\-]+)}).to(
+  
+  resources :comments
+  
+  match(%r{/(\d+)/(\d+)/([a-zA-Z\-]+)}).to(
     :controller =&gt; 'blogs', :action =&gt; 'show', :year =&gt; &quot;[1]&quot;, :month =&gt; &quot;[2]&quot;, :path_title =&gt; &quot;[3]&quot;
   )
-
+  
   # NAMED routes
   r.match('/contact').to( :controller =&gt; 'comments', :action =&gt; 'new' ).name( :contact )
-
+  
   r.match('/:category_title').to( :controller =&gt; 'blogs', :action =&gt; 'index' ).name( :category )
+  # resources :posts
 
   # This is the default route for /:controller/:action/:id
   # This is fine for most cases.  If you're heavily using resource-based
   # routes, you may want to comment/remove this line to prevent
   # clients from calling your create or destroy actions with a GET
-  r.default_routes
+  default_routes
 
   # Used for path generation
   r.match('/:year/:month/:path_title').to( :controller =&gt; 'blogs', :action =&gt; 'show' ).name( :blog_by_date )
-  
 
   # Change this for your home page to be available at /
   r.match('/').to(:controller =&gt; 'blogs', :action =&gt;'show', :id =&gt; 'latest' )
-end
-
-AuthenticatedSystem.add_routes rescue nil
+end
\ No newline at end of file</diff>
      <filename>config/router.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,22 @@
 #!/usr/bin/env ruby
+                                                               
+require 'rubygems'
+require 'merb-core'
 
-argv = ARGV + %w[-a fcgi]
-Merb.start(argv)
\ No newline at end of file
+# this is Merb.root, change this if you have some funky setup.
+merb_root = File.expand_path(File.dirname(__FILE__) / '../')
+        
+# If the fcgi process runs as apache, make sure
+# we have an inlinedir set for Rubyinline action-args to work
+unless ENV[&quot;INLINEDIR&quot;] || ENV[&quot;HOME&quot;]
+  tmpdir = merb_root / &quot;tmp&quot;
+  unless File.directory?(tmpdir)
+    Dir.mkdir(tmpdir)
+  end                
+  ENV[&quot;INLINEDIR&quot;] = tmpdir
+end
+   
+# start merb with the fcgi adapter, add options or change the log dir here
+Merb.start(:adapter =&gt; 'fcgi',
+           :merb_root =&gt; merb_root,
+           :log_file =&gt; merb_root /'log'/'merb.log')
\ No newline at end of file</diff>
      <filename>public/merb.fcgi</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,22 @@
-$TESTING=true
-require 'rubygems'
-require 'merb-core'
-require 'ruby-debug'
-require 'spec'
-require File.join( File.dirname(__FILE__), &quot;authenticated_system_spec_helper&quot;)
-require File.join( File.dirname(__FILE__), &quot;user_spec_helper&quot;)
+require &quot;rubygems&quot;
 
+# Add the local gems dir if found within the app root; any dependencies loaded
+# hereafter will try to load from the local gems before loading system gems.
+if (local_gem_dir = File.join(File.dirname(__FILE__), '..', 'gems')) &amp;&amp; $BUNDLE.nil?
+  $BUNDLE = true; Gem.clear_paths; Gem.path.unshift(local_gem_dir)
+end
+
+require &quot;merb-core&quot;
+require &quot;spec&quot; # Satisfies Autotest and anyone else not using the Rake tasks
+
+# this loads all plugins required in your init file so don't add them
+# here again, Merb will do it for you
 Merb.start_environment(:testing =&gt; true, :adapter =&gt; 'runner', :environment =&gt; ENV['MERB_ENV'] || 'test')
 
 Spec::Runner.configure do |config|
   config.include(Merb::Test::ViewHelper)
   config.include(Merb::Test::RouteHelper)
   config.include(Merb::Test::ControllerHelper)
-#  config.mock_with :mocha
 end
 
 def blog_options</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>176eac4d277abc38a2f8bdf7f5dabc28ce6dc704</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Wheeler</name>
    <email>oldaaronwheeler@aaron-wheelers-macbook-pro-15.local</email>
  </author>
  <url>http://github.com/fightinjoe/fightinjoe-merb-blog/commit/ebf59c65656f1d7752031ca1016c8bc6ddd674ad</url>
  <id>ebf59c65656f1d7752031ca1016c8bc6ddd674ad</id>
  <committed-date>2008-10-08T18:50:17-07:00</committed-date>
  <authored-date>2008-10-08T18:50:17-07:00</authored-date>
  <message>Upgraded to frozen version of Merb</message>
  <tree>1672303eeef7b1a6ff92fc3329569d44dff2b48a</tree>
  <committer>
    <name>Aaron Wheeler</name>
    <email>oldaaronwheeler@aaron-wheelers-macbook-pro-15.local</email>
  </committer>
</commit>
