]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/application.rb
Route index.html to site index
[selectricity-live] / app / controllers / application.rb
index 8c6f8aeabfc803bbd538516f06365afe69e90578..aeb2204f38ef75015b229032463114d7975330be 100644 (file)
@@ -4,6 +4,18 @@
 class ApplicationController < ActionController::Base
   include AuthenticatedSystem
   helper :user
 class ApplicationController < ActionController::Base
   include AuthenticatedSystem
   helper :user
-  model :user
-  
+  require_dependency "user"
+  before_filter :add_stylesheets
+   
+  def initialize
+    @stylesheets = []
+  end
+            
+  def add_stylesheets
+    file = "#{Dir.pwd}/public/stylesheets/#{controller_name}.css"
+    if File.exists? file
+      @stylesheets << controller_name
+    end
+  end
+
 end
 end

Benjamin Mako Hill || Want to submit a patch?