Added a new row to the context table: hide. This determines whether a context gets hidden from the front todo/list page (it can still be accessed directly or via the context/list page). If it's true (1), the context is hidden. By default, it's false, so you don't have to check the box for every context you add, only the ones you want to hide.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@14 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-01-23 19:49:41 +00:00
parent 9a649506a5
commit ed4481f3b6
6 changed files with 15 additions and 5 deletions

View file

@ -24,7 +24,7 @@ class ContextController < ApplicationController
#
def add_context
context = Context.new
context.name = @params["new_context"]["name"]
context.attributes = @params["new_context"]
if context.save
flash["confirmation"] = "Succesfully created context"