Created shared partial for footer to share between layouts.

Introduce unobtrusive_javascript plugin to start to beautify our html and reduce the size of our html pages. See http://www.ujs4rails.com/ for more info.
Implement unobtrusive_javascript for contexts listing page and project detail page.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@430 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-02-05 04:25:10 +00:00
parent 572dcdf42e
commit 6814c29626
56 changed files with 2816 additions and 34 deletions

View file

@ -0,0 +1,21 @@
require 'actionview_helpers_patches'
require 'prototype_helper_patches'
require 'scriptaculous_helper_patches'
require 'asset_tag_helper_patches'
require 'tag_helper_patches'
require 'behaviour_caching'
require 'ujs'
# make plugin controllers and views available to app
config.load_paths += %W(#{UJS::PLUGIN_CONTROLLER_PATH})
Rails::Initializer.run(:set_load_path, config)
# add methods to action controller base
ActionController::Base.send(:include, UJS::ControllerMethods)
# load in the helpers and caching code
ActionController::Base.send(:helper, UJS::Helpers)
ActionController::Base.send(:include, UJS::BehaviourCaching)
# require the controller
require 'unobtrusive_javascript_controller'