|
|
Installation
Installation and upgrade
Installing Comatose
From your root application folder, run:
./script/plugin source http://mattmccray.com/svn/rails/plugins ./script/plugin install comatose ./script/generate comatose_migration rake migrate
Now add this to the bottom of your config/routes.rb file:
map.comatose_admin map.comatose_root ''
That's it! The plugin is installed and ready for integration.
Upgrading From Earlier Versions
If you are upgrading from an older version of Comatose (from version 0.3 to 0.4 or 0.5), then you will need to re-install the comatose plugin by running:
./script/plugin remove comatose ./script/plugin install comatose
Then, you'll need to generate a migration for the updated fields:
./script/generate comatose_migration --upgrade --from=0.5 rake migrate
Where the '0.5' in the from parameter is the version you are upgrading from.
That's it for updating the plugin! You now have the latest code and updated schema. If you've made customizations to the administration views, you'll need to upgrade them as well. See the customization documentation for more on that.
Sign in to add a comment

I think you may want to point at:
http://comatose-plugin.googlecode.com/svn/trunk/
instead of :
http://mattmccray.com/svn/rails/plugins
in the setup.
If you are migrating and want to bootstrap versioning, do something like this:
def self.up conn = Comatose::Page.connection conn.execute "UPDATE comatose_pages SET version = 1" conn.execute <<-SQL INSERT INTO page_versions (page_id,version,parent_id,full_path,title,slug,keywords,body,filter_type,author,position,updated_on,created_on) SELECT id,version,parent_id,full_path,title,slug,keywords,body,filter_type,author,position,updated_on,created_on FROM comatose_pages SQL endThe rake task migrate has been deprecated, please use the replacement version db:migrate
The list of dependent plugins are not mentioned anywhere i.e. acts_as_tree, acts_as_list etc. Did I do something wrong while installing or Comatose install does not include all the dependency installs by default.
Thanks, Rupak Ganguly
I guess the acts_as_tree and acts_as_list was dropped from core Rails 2, hence Comatose installation needs it.
Thanks, Rupak Ganguly
Hi, Just a note the comatose migration is incorrect, because MySQL does not allow default values on the text datatype. Just remove ":default => ''" from the "full_path" line in the migration file to fix it. Jason
Just a note, if you are using edge rails, you may have this problem:
Creating the default 'Home Page'... rake aborted! can't convert String into Integer
You want to follow Michael Irwin's very helpful fix here: http://groups.google.com/group/comatose-plugin/browse_thread/thread/e6402c29de92edc7