diff --git a/tracks/app/controllers/context_controller.rb b/tracks/app/controllers/context_controller.rb index 3397ada9..3242e4c1 100644 --- a/tracks/app/controllers/context_controller.rb +++ b/tracks/app/controllers/context_controller.rb @@ -5,6 +5,7 @@ class ContextController < ApplicationController model :project scaffold :context before_filter :login_required + caches_action :list, :show layout "standard" diff --git a/tracks/app/controllers/feed_controller.rb b/tracks/app/controllers/feed_controller.rb index 1368a088..aa29c14f 100644 --- a/tracks/app/controllers/feed_controller.rb +++ b/tracks/app/controllers/feed_controller.rb @@ -4,6 +4,7 @@ class FeedController < ApplicationController helper :feed model :todo, :context, :project + before_filter :login_required def index end diff --git a/tracks/app/controllers/project_controller.rb b/tracks/app/controllers/project_controller.rb index be49725f..c48a01eb 100644 --- a/tracks/app/controllers/project_controller.rb +++ b/tracks/app/controllers/project_controller.rb @@ -6,6 +6,7 @@ class ProjectController < ApplicationController scaffold :project before_filter :login_required + caches_action :list, :show layout "standard" # Main method for listing projects diff --git a/tracks/app/controllers/todo_controller.rb b/tracks/app/controllers/todo_controller.rb index 49f80558..6b1d59c0 100644 --- a/tracks/app/controllers/todo_controller.rb +++ b/tracks/app/controllers/todo_controller.rb @@ -6,6 +6,7 @@ class TodoController < ApplicationController scaffold :todo before_filter :login_required + caches_action :list, :completed layout "standard" # Main method for listing tasks diff --git a/tracks/app/models/todo.rb b/tracks/app/models/todo.rb index 831413f9..09e57c5e 100644 --- a/tracks/app/models/todo.rb +++ b/tracks/app/models/todo.rb @@ -7,7 +7,7 @@ class Todo < ActiveRecord::Base # Notes must be < 60,000 bytes (65,000 actually, but I'm being cautious) validates_presence_of :description, :message => "no description provided" validates_length_of :description, :maximum => 100, :message => "description is too long" - validates_lenght_of :notes, :maximum => 60000, :message => "notes are too long" + validates_length_of :notes, :maximum => 60000, :message => "notes are too long" #validates_format_of :due, :with => /^[\d]{2,2}\/[\d]{2,2}\/[\d]{4,4}$/, :message => "date format incorrect" diff --git a/tracks/app/views/todo/list.rhtml b/tracks/app/views/todo/list.rhtml index c31789ec..45a50142 100644 --- a/tracks/app/views/todo/list.rhtml +++ b/tracks/app/views/todo/list.rhtml @@ -1,5 +1,4 @@