Jon Evans
unread,May 14, 2008, 11:59:31 AM5/14/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Comatose Plugin
Hi,
I'd like to be able to link to other pages from within my comatose
pages and fragments. For example, the home page of my site has a rails
view like this:
<h1>Header...</h1>
<%= render :comatose=>'welcome' %>
<!-- other page furniture here... -->
I'd like to edit the 'welcome' page fragment to include links to other
site pages like this:
Welcome to the site. You can <%= link_to "create a new account",
new_account_path %>, or ...
(I've configured config.default_processor = :erb).
The reason for using a comatose fragment rather than just including
the text in the rails view is to make it easy to change when the site
goes live, to add site notices for example. I'm going to use comatose
for other parts of the site too, not just this little fragment on the
front page.
How can I give my comatose views access to all of the usual Rails
helpers? I've been experimenting with config.includes and
config.helpers but I haven't been able to make it work yet.
Thanks
Jon