mattmccray

 
« Comatose Version 0.7 | Home | Lil Monstas!! »

Comatose 'Compatibility Mode'

» Published September 20, 2006 under Comatose, Rails, Software

OK, so after mentioning it in my last post, I’ve decided to go ahead and implement it. Comatose version 0.7.1 adds a DEFER_COMATOSE_LOAD flag that you can use to, well, defer comatose’s loading. You will have to manually tell it to load in your environment.rb using Comatose.load.

See this devblog post for more.

Normally, I’d only post this on the Comatose development blog, but I wanted to make sure anybody who’s having problems using Comatose with other plugins/applications knows about this. If you have problems or questions, leave a comment here. Thanks!


2 comments

09.21.06 @ 20:18 cyberpants said...
how do I inline render what is in the root home page generated by comatose? for instance, by default there is “Home Page” with a slug of “home-page”. In my routes file I have:

map.comatose_root ‘pages’

i’ve tried:

‘Home Page’%>
‘home-page’%>
‘pages’%>

and have tried renaming the home page to something else, and rendering that title. I can’t seem to figure out how this can work.
09.21.06 @ 22:30 M@ said...
Sorry about that. The rules are pretty straight-forward, except for the home page.

You send the page’s path into the <%= render :comatose=>'slugs/to-the/target-page' %>. Normally, the path is comprised of the page's ancestor's slugs. However, the root page (the home page) always has a path@ of ‘’. So, for the home page, you’d use:

<%= render :comatose=>'' %>

No trackbacks

Trackback link:

Please enable javascript to generate a trackback url


You may use Textile, or simple html tags (B,I). Feel free to use Emoticons too. Oh, and please limit yourself to only five links per comment. Anything more and you'll probably get detained by the spam police.