Forum: Radiant CMS page_attachment extension help

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Luigi R. (Guest)
on 2007-05-16 22:59
(Received via mailing list)
**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
**
Sean C. (Guest)
on 2007-05-17 00:23
(Received via mailing list)
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
This topic is locked and can not be replied to.