# Tip: page\_attachments extension needs submodule initialized

**URL:** <https://www.ruby-forum.com/t/tip-page-attachments-extension-needs-submodule-initialized/150640>\
**Category:** Radiant CMS\
**Created:** [October 10, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/tip-page-attachments-extension-needs-submodule-initialized/150640 "2008-10-10T18:14:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasongarber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Post date:** [October 10, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/tip-page-attachments-extension-needs-submodule-initialized/150640/1 "2008-10-10T18:14:19Z")

</div>

Just a quick tip (and maybe bug report? not sure)…

I tried a simple ./script/extension install page\_attachments in my  
Radiant 0.6.9 instance and got

rake aborted!  
undefined method `has\_attachment’ for PageAttachment(Table doesn’t  
exist):Class

The problem was attachment\_fu was missing. It’s included via git  
submodule, but isn’t pulled along with the clone. So, you have to cd to  
the page\_attachments extension and

git submodule init  
git submodule update

Then cd back up to the app root and rake db:mgrate:extensions and rake  
radiant:extensions:update\_all.

That should take care of it. Maybe this workaround means I’m doing  
something wrong, but I at least wanted to put it out there for people  
googling that error message.

Sean, thanks for maintaining the page\_attachments extension! I tried  
out paperclipped, but it’s too much for my users. They _get_ the  
simplicity of page\_attachments.

Jason G.

---

<div class="post-metadata">

**Author:** ![jasongarber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Post date:** [October 10, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/tip-page-attachments-extension-needs-submodule-initialized/150640/2 "2008-10-10T19:58:55Z")

</div>

> Sean, thanks for maintaining the page\_attachments extension! I tried  
> out paperclipped, but it’s too much for my users. They _get_ the  
> simplicity of page\_attachments.

I’ve handed out maintenance to a couple active developers on it as  
well. I’m sorry about the script/extension install issue. It’s  
supposed to initialize git submodules automatically.

Sean

---

<div class="post-metadata">

**Author:** ![jasongarber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Post date:** [October 10, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/tip-page-attachments-extension-needs-submodule-initialized/150640/3 "2008-10-10T20:12:25Z")

</div>

Just fixed this in edge:

> <https://github.com/radiant/radiant/commit/5d957241ee6c9f2c040c5f17882976b56902f641>

> <https://github.com/radiant/radiant/commit/c92cf42482c22f81674712b8e1b47d511661db7e>

Cheers,

Sean
