# Question on share\_layouts extension

**URL:** <https://www.ruby-forum.com/t/question-on-share-layouts-extension/137732>\
**Category:** Radiant CMS\
**Created:** [May 15, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/question-on-share-layouts-extension/137732 "2008-05-15T20:43:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [May 15, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/question-on-share-layouts-extension/137732/1 "2008-05-15T20:43:24Z")

</div>

Hi,  
I’m new to Radiant and have been trying out the share\_layouts extension  
because it allows me to use my own rails extensions whilst reusing the  
Radiant layouts.  
In the 0.6.6 gem for Radiant there is a ‘Normal’ layout which has  
various radius tags in it and which I’ve been trying to use for one of  
my own extensions - but aside from the r:content tag which displays the  
output from the erb in my extension, I’m getting errors or blanks  
elsewhere. For instance, the r:date in the footer snippet (which  
outputs the year for the copyright notice) fails and instead displays  
“undefined method `strftime’ for nil:NilClass” on my page.

As I said, very new to the platform. I feel it has something to do with  
the Radius Context or parser and the globals struct in Context.  
Specifically, RailsPage being a subclass of Page, calls  
Page#lazy\_initialize\_parser\_and\_context and passes itself ‘@context =  
PageContext.new(self)’ (app/modes/page.rb). Maybe something is going  
wrong because of the inheritance issue there. (or I could be totally  
misusing this extension)

Anyway, this extension is still very useful so many thanks to its  
creator.  
Any help?

Cheers,  
Daniel
