You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by as...@apache.org on 2007/11/18 02:52:09 UTC
svn commit: r596036 - in /ode/sandbox/singleshot: README
app/controllers/application.rb lib/tasks/
Author: assaf
Date: Sat Nov 17 17:52:08 2007
New Revision: 596036
URL: http://svn.apache.org/viewvc?rev=596036&view=rev
Log:
Added missing default controller
Added:
ode/sandbox/singleshot/app/controllers/application.rb
ode/sandbox/singleshot/lib/tasks/
Modified:
ode/sandbox/singleshot/README
Modified: ode/sandbox/singleshot/README
URL: http://svn.apache.org/viewvc/ode/sandbox/singleshot/README?rev=596036&r1=596035&r2=596036&view=diff
==============================================================================
--- ode/sandbox/singleshot/README (original)
+++ ode/sandbox/singleshot/README Sat Nov 17 17:52:08 2007
@@ -18,3 +18,10 @@
development, test and production. That way you can have data in your
development database that is not deleted when running tests, and does not
interfere with production data.
+
+To create all three databases:
+
+ $ rake db:create:all
+ $ rake db:migrate
+ $ rake db:test:clone
+
Added: ode/sandbox/singleshot/app/controllers/application.rb
URL: http://svn.apache.org/viewvc/ode/sandbox/singleshot/app/controllers/application.rb?rev=596036&view=auto
==============================================================================
--- ode/sandbox/singleshot/app/controllers/application.rb (added)
+++ ode/sandbox/singleshot/app/controllers/application.rb Sat Nov 17 17:52:08 2007
@@ -0,0 +1,8 @@
+# Filters added to this controller apply to all controllers in the application.
+# Likewise, all the methods added will be available for all controllers.
+
+class ApplicationController < ActionController::Base
+
+ helper :all # include all helpers, all the time
+
+end