Because of a typo in project.rb, updating an existing project from completed to either hidden or active was broken. Fixes #418.

Also removed signup route because this is now accomplished via the admin controller.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@380 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2006-12-24 12:32:06 +00:00
parent c719eeb146
commit 4a97b39928
2 changed files with 2 additions and 3 deletions

View file

@ -21,11 +21,11 @@ class Project < ActiveRecord::Base
state :completed
event :activate do
transitions :to => :active, :from => [:hidden, :complete]
transitions :to => :active, :from => [:hidden, :completed]
end
event :hide do
transitions :to => :hidden, :from => [:active, :complete]
transitions :to => :hidden, :from => [:active, :completed]
end
event :complete do

View file

@ -19,7 +19,6 @@ ActionController::Routing::Routes.draw do |map|
# Admin Routes
map.connect 'admin', :controller => 'admin', :action => 'index'
# map.connect 'admin/signup', :controller => 'admin', :action => 'create'
map.connect 'admin/destroy/:id', :controller => 'admin', :action => 'destroy', :requirements => {:id => /\d+/}
# Mobile/lite version