What's new? | Help | Directory | Sign in
Google
comatose-plugin
The Micro-CMS for Rails.
  
  
  
  
    
Search
for
Updated Jun 28, 2007 by darthapo
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.


Comment by timshadel, Jul 28, 2007

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.

Comment by dvrensk, Sep 10, 2007

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
  end
Comment by o.Kanniball.o, Sep 26, 2007

The rake task migrate has been deprecated, please use the replacement version db:migrate

Comment by rupakg, Feb 22, 2008

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

Comment by rupakg, Feb 23, 2008

I guess the acts_as_tree and acts_as_list was dropped from core Rails 2, hence Comatose installation needs it.

Thanks, Rupak Ganguly

Comment by wjgilmore, Mar 22, 2008

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

Comment by eric.oconnell, May 19, 2008

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


Sign in to add a comment