<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/category_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/images_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/member_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/category_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/images_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/login_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/member_helper.rb</filename>
    </added>
    <added>
      <filename>app/views/category/category.html.erb</filename>
    </added>
    <added>
      <filename>app/views/category/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/home/_footer.html.erb</filename>
    </added>
    <added>
      <filename>app/views/home/_header.html.erb</filename>
    </added>
    <added>
      <filename>app/views/home/_menu.html.erb</filename>
    </added>
    <added>
      <filename>app/views/home/about.html.erb</filename>
    </added>
    <added>
      <filename>app/views/images/new.html.erb</filename>
    </added>
    <added>
      <filename>app/views/images/search.html.erb</filename>
    </added>
    <added>
      <filename>app/views/images/top.html.erb</filename>
    </added>
    <added>
      <filename>app/views/login/logout.html.erb</filename>
    </added>
    <added>
      <filename>app/views/member/add_image.html.erb</filename>
    </added>
    <added>
      <filename>app/views/member/images.html.erb</filename>
    </added>
    <added>
      <filename>app/views/member/signup.html.erb</filename>
    </added>
    <added>
      <filename>public/images/arrows-ffffff.png</filename>
    </added>
    <added>
      <filename>public/images/shadow.png</filename>
    </added>
    <added>
      <filename>public/javascripts/hoverIntent.js</filename>
    </added>
    <added>
      <filename>public/javascripts/superfish.js</filename>
    </added>
    <added>
      <filename>public/stylesheets/rated-on-rails.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/superfish-navbar.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/superfish.css</filename>
    </added>
    <added>
      <filename>test/functional/category_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/images_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/login_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/member_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/category_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/images_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/login_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/member_helper_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,4 +2,5 @@ db/development.sqlite3
 config/database.yml
 log/development.log
 log/test.log
+public/system
 </diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,19 @@
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
 class ApplicationController &lt; ActionController::Base
-  helper :all # include all helpers, all the time
-  protect_from_forgery # See ActionController::RequestForgeryProtection for details
 
-  # Scrub sensitive parameters from your log
-  # filter_parameter_logging :password
+  helper :all
+
+  protect_from_forgery
+
+  filter_parameter_logging :password
+
+  before_filter :get_current_user
+
+  def get_current_user
+    unless session[:user_id]
+      @current_user = nil
+      return
+    end
+    @current_user = User.find( session[:user_id] )
+  end
+
 end</diff>
      <filename>app/controllers/application_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,8 @@ class Category &lt; ActiveRecord::Base
   has_many :image_categories, :dependent =&gt; :destroy
   has_many :images, :through =&gt; :image_categories
 
+  def self.for_menu
+    Category.find( :all, :order =&gt; 'name' )
+  end
+
 end</diff>
      <filename>app/models/category.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,8 +4,9 @@ class Image &lt; ActiveRecord::Base
 
   has_many :image_categories, :dependent =&gt; :destroy
 
-  has_attached_file :img,
-                    :styles =&gt; { :medium =&gt; &quot;300x300&gt;&quot;,
-                                 :thumb  =&gt; &quot;100x100&gt;&quot; }
+  has_attached_file :i, :styles =&gt; { :t =&gt; '80x80&gt;',
+                                     :s =&gt; '120x120&gt;',
+                                     :m =&gt; &quot;360x240&gt;&quot;,
+                                     :l =&gt; &quot;640x480&gt;&quot; }
 
 end</diff>
      <filename>app/models/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,3 @@
-&lt;h1&gt;Home#index&lt;/h1&gt;
-&lt;p&gt;Find me in app/views/home/index.html.erb&lt;/p&gt;
+&lt;p&gt;&lt;/p&gt;
+
+&lt;%= debug @current_user %&gt;</diff>
      <filename>app/views/home/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,3 @@
-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
-  &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
-&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
-&lt;head&gt;
-  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
-  &lt;title&gt;Rated-on-Rails&lt;/title&gt;
-  &lt;link rel=&quot;shortcut icon&quot; href=&quot;/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;
-  &lt;link href=&quot;/stylesheets/rated-on-rails.css&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
-  &lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/jquery.js&quot;&gt;&lt;/script&gt;
-  &lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/jquery-ui.js&quot;&gt;&lt;/script&gt;
-  &lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/jrails.js&quot;&gt;&lt;/script&gt;
-  &lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/application.js&quot;&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
+&lt;%= render :partial =&gt; 'home/header' %&gt;
 &lt;%= yield :layout %&gt;
-&lt;/body&gt;
-&lt;/html&gt;
+&lt;%= render :partial =&gt; 'home/footer' %&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,43 +1,13 @@
 ActionController::Routing::Routes.draw do |map|
-  # The priority is based upon order of creation: first created -&gt; highest priority.
 
-  # Sample of regular route:
-  #   map.connect 'products/:id', :controller =&gt; 'catalog', :action =&gt; 'view'
-  # Keep in mind you can assign values other than :controller and :action
+  map.connect 'member/add-image',  :controller =&gt; 'member',  :action =&gt; 'add_image'
 
-  # Sample of named route:
-  #   map.purchase 'products/:id/purchase', :controller =&gt; 'catalog', :action =&gt; 'purchase'
-  # This route can be invoked with purchase_url(:id =&gt; product.id)
+  map.connect 'about',  :controller =&gt; 'home',  :action =&gt; 'about'
+  map.connect 'logout', :controller =&gt; 'login', :action =&gt; 'logout'
+  map.connect 'login',  :controller =&gt; 'login', :action =&gt; 'login'
 
-  # Sample resource route (maps HTTP verbs to controller actions automatically):
-  #   map.resources :products
+  map.root :controller =&gt; 'home'
 
-  # Sample resource route with options:
-  #   map.resources :products, :member =&gt; { :short =&gt; :get, :toggle =&gt; :post }, :collection =&gt; { :sold =&gt; :get }
-
-  # Sample resource route with sub-resources:
-  #   map.resources :products, :has_many =&gt; [ :comments, :sales ], :has_one =&gt; :seller
-  
-  # Sample resource route with more complex sub-resources
-  #   map.resources :products do |products|
-  #     products.resources :comments
-  #     products.resources :sales, :collection =&gt; { :recent =&gt; :get }
-  #   end
-
-  # Sample resource route within a namespace:
-  #   map.namespace :admin do |admin|
-  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
-  #     admin.resources :products
-  #   end
-
-  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-  # map.root :controller =&gt; &quot;welcome&quot;
-
-  # See how all your routes lay out with &quot;rake routes&quot;
-
-  # Install the default routes as the lowest priority.
-  # Note: These default routes make all actions in every controller accessible via GET requests. You should
-  # consider removing or commenting them out if you're using named routes and resources.
   map.connect ':controller/:action/:id'
   map.connect ':controller/:action/:id.:format'
 end</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,11 @@ class CreateImages &lt; ActiveRecord::Migration
   def self.up
     create_table :images do |t|
       t.integer  :user_id,         :null =&gt; false
-      t.string   :img_file_name
-      t.string   :img_content_type
-      t.string   :img_file_size
-      t.string   :img_updated_at
+      t.string   :name,            :null =&gt; false
+      t.string   :i_file_name
+      t.string   :i_content_type
+      t.string   :i_file_size
+      t.string   :i_updated_at
       t.datetime :created_at
     end
   end</diff>
      <filename>db/migrate/002_create_images.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,11 +28,12 @@ ActiveRecord::Schema.define(:version =&gt; 4) do
   add_index &quot;image_categories&quot;, [&quot;image_id&quot;, &quot;category_id&quot;], :name =&gt; &quot;index_image_categories_on_image_id_and_category_id&quot;, :unique =&gt; true
 
   create_table &quot;images&quot;, :force =&gt; true do |t|
-    t.integer  &quot;user_id&quot;,          :null =&gt; false
-    t.string   &quot;img_file_name&quot;
-    t.string   &quot;img_content_type&quot;
-    t.string   &quot;img_file_size&quot;
-    t.string   &quot;img_updated_at&quot;
+    t.integer  &quot;user_id&quot;,        :null =&gt; false
+    t.string   &quot;name&quot;,           :null =&gt; false
+    t.string   &quot;i_file_name&quot;
+    t.string   &quot;i_content_type&quot;
+    t.string   &quot;i_file_size&quot;
+    t.string   &quot;i_updated_at&quot;
     t.datetime &quot;created_at&quot;
   end
 </diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,9 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#   
-#   cities = City.create([{ :name =&gt; 'Chicago' }, { :name =&gt; 'Copenhagen' }])
-#   Major.create(:name =&gt; 'Daley', :city =&gt; cities.first)
+User.create!( :username    =&gt; 'gdonald',
+              :fname       =&gt; 'Greg',
+              :lname       =&gt; 'Donald',
+              :email       =&gt; 'gdonald@gmail.com',
+              :password    =&gt; 'changeme',
+              :email_valid =&gt; true )
+Category.create( :name =&gt; 'Blondes' )
+Category.create( :name =&gt; 'Brunettes' )
+Category.create( :name =&gt; 'Redheads' )</diff>
      <filename>db/seeds.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,5 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
+$(document).ready(function(){
+  $('ul.sf-menu').superfish({
+    pathClass: 'current'
+  });
+});</diff>
      <filename>public/javascripts/application.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/index.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>f088df7647ec2b1523068fba58b625ea28b4e0da</id>
    </parent>
  </parents>
  <author>
    <name>Greg Donald</name>
    <email>destiney@bajor.(none)</email>
  </author>
  <url>http://github.com/gdonald/Rated-on-Rails/commit/29d0d8a0b166df27426fe09cef74a5a8c4714b5b</url>
  <id>29d0d8a0b166df27426fe09cef74a5a8c4714b5b</id>
  <committed-date>2009-10-21T21:54:32-07:00</committed-date>
  <authored-date>2009-10-21T21:54:32-07:00</authored-date>
  <message>updates</message>
  <tree>68723d693c2fafc955181a0e95ac99ed49064e67</tree>
  <committer>
    <name>Greg Donald</name>
    <email>destiney@bajor.(none)</email>
  </committer>
</commit>
