mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Having problems committing.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@9 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
8428a4ade5
commit
d7b1c6e167
11 changed files with 19 additions and 6 deletions
|
|
@ -5,6 +5,7 @@ class ContextController < ApplicationController
|
|||
model :project
|
||||
scaffold :context
|
||||
before_filter :login_required
|
||||
caches_action :list, :show
|
||||
|
||||
layout "standard"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ class FeedController < ApplicationController
|
|||
|
||||
helper :feed
|
||||
model :todo, :context, :project
|
||||
before_filter :login_required
|
||||
|
||||
def index
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ class ProjectController < ApplicationController
|
|||
scaffold :project
|
||||
|
||||
before_filter :login_required
|
||||
caches_action :list, :show
|
||||
layout "standard"
|
||||
|
||||
# Main method for listing projects
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ class TodoController < ApplicationController
|
|||
|
||||
scaffold :todo
|
||||
before_filter :login_required
|
||||
caches_action :list, :completed
|
||||
layout "standard"
|
||||
|
||||
# Main method for listing tasks
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<div id="display_box">
|
||||
|
||||
<% for @place in @places %>
|
||||
<% heading = false %>
|
||||
|
||||
|
|
@ -62,7 +61,6 @@
|
|||
<%= puts "<li>#{event.startTime} - #{event.summary}</li>" %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Add next action</h2>
|
||||
<form method="post" action="add_item">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
RAILS_ROOT = File.dirname(__FILE__) + "/../"
|
||||
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
|
||||
RAILS_ENV = ENV['RAILS_ENV'] || 'production'
|
||||
|
||||
|
||||
# Mocks first.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
Dependencies.mechanism = :load
|
||||
ActionController::Base.consider_all_requests_local = true
|
||||
BREAKPOINT_SERVER_PORT = 42531
|
||||
BREAKPOINT_SERVER_PORT = 42531
|
||||
|
||||
ActionController::Base.fragment_cache_store = ActionController::Caching::Fragments::MemoryStore.new
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
Dependencies.mechanism = :require
|
||||
ActionController::Base.consider_all_requests_local = false
|
||||
|
||||
ActionController::Base.fragment_cache_store = ActionController::Caching::Fragments::MemoryStore.new
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
Main project site: <http://www.rousette.org.uk/projects/>
|
||||
Project wiki: <http://www.rousette.org.uk/projects/wiki/>
|
||||
|
||||
## Version 1.02
|
||||
|
||||
1. Uses Rails 0.9.4.1
|
||||
2. Added validation for the entry fields. If you enter a bit of text that's too long or you omit the description (not much point in a blank next action!) you'll get an error message and the action won't be saved.
|
||||
3. Added action caching.
|
||||
|
||||
## Version 1.01
|
||||
|
||||
A small increment to fix a few bugs and typographical errors in the README:
|
||||
|
|
|
|||
|
|
@ -247,5 +247,5 @@ td {
|
|||
}
|
||||
|
||||
.odd_row {
|
||||
background: #cbffff;
|
||||
background: #EDF3FE;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue