# Page\_attachment extension help

**URL:** <https://www.ruby-forum.com/t/page-attachment-extension-help/104331>\
**Category:** Radiant CMS\
**Created:** [May 16, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/page-attachment-extension-help/104331 "2007-05-16T20:59:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [May 16, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/page-attachment-extension-help/104331/1 "2007-05-16T20:59:09Z")

</div>

\*\*Hi. I’ve not found an example of usage of the page\_attachment  
extension. Sean’s site seems down.

How do I practically use it inside a page?

For example, if I enter this statements (textile filter):

\<r:attachment name=‘pasticcio’ /\>  
\<r:attachment:url name=‘ciccio’ /\>

I get the following error:

undefined method `public\_filename’ for nil:NilClass

I freezed radiant and did the rake tasks as suggested. The file is  
uploaded correctly. I just don’t understand how to assemble the tags in  
a page. Could someone provide a simple example?

Thank you!

Luigi  
\*\*

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [May 16, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/page-attachment-extension-help/104331/2 "2007-05-16T22:23:18Z")

</div>

It would give you the nil error if you give an incorrect filename.  
Try giving the full filename, like  
‘ciccio.jpg’ or whatever type it is.

You can see the filenames next to the thumbnail in the page-edit  
interface. Apologies about my website. If it’s down, wait about 30  
minutes and check again (I have a cron job that restarts it every  
hour).

Sean
