# Problem installing extension page\_attachments

**URL:** <https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266>\
**Category:** Radiant CMS\
**Created:** [January 9, 2009, 12:30am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266 "2009-01-09T00:30:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 12:30am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/1 "2009-01-09T00:30:09Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi all 🙂 (newbie at radiant here)

I tried

$ script/extension install page\_attachments

It fails running the migrations, like these:

$ rake db:migrate:extensions  
(in /home/gomix/radiant)  
rake aborted!  
undefined method `has\_attachment’ for PageAttachment(Table doesn’t  
exist):Class

(See full trace by running task with --trace)

The extension rake task should actually create the table, does someone  
whats going on here?

regards

Guillermo  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.9 (GNU/Linux)  
Comment: Using GnuPG with Fedora - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811  
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX  
=FJ5b  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 12:34am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/2 "2009-01-09T00:34:50Z")

</div>

I tried this with the 0.70rc, and script/extension install doesn’t seem  
to do anything for me. Is it disabled in the RC?

–cro

----- Original Message -----  
From: “Guillermo GÃ³mez” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Thursday, January 8, 2009 4:29:25 PM GMT -07:00 US/Canada Mountain  
Subject: [Radiant] problem installing extension page\_attachments

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi all 🙂 (newbie at radiant here)

I tried

$ script/extension install page\_attachments

It fails running the migrations, like these:

$ rake db:migrate:extensions  
(in /home/gomix/radiant)  
rake aborted!  
undefined method `has\_attachment’ for PageAttachment(Table doesn’t  
exist):Class

(See full trace by running task with --trace)

The extension rake task should actually create the table, does someone  
whats going on here?

regards

Guillermo  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.9 (GNU/Linux)  
Comment: Using GnuPG with Fedora - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811  
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX  
=FJ5b  
-----END PGP SIGNATURE-----

* * *

Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 12:51am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/3 "2009-01-09T00:51:13Z")

</div>

I’m not certain about the 0.7RC script/extension problem, but if you’re  
using 0.6.9, and use script/extension install, go into  
vendor/extensions/page\_attachments and run this:

git reset --hard 0.6.9

This will put the extension back onto a (hopefully) 0.6.9-compatible  
version. Now run `git submodule init && git submodule update` to get  
attachment\_fu, and then run `rake db:migrate:extensions radiant:extensions:update_all` from the root of your project.

Going forward, we should be adding support for selecting specific  
tags/forks/etc from the extension installer. I’m going to reiterate my  
call for contributions to the extension registry. It essentially hasn’t  
changed since I deployed it in August.

Sean

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 2:45am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/4 "2009-01-09T02:45:18Z")

</div>

On Thu, Jan 8, 2009 at 5:50 PM, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Going forward, we should be adding support for selecting specific  
> tags/forks/etc from the extension installer. I’m going to reiterate my call  
> for contributions to the extension registry. It essentially hasn’t changed  
> since I deployed it in August.

Sean, I had to go back to 81124e93 to get page\_attachments to work  
properly.  
The very next commit broke the ability to destroy page\_attachments. I  
think  
it was the changes in the model “page\_attachment\_associations.rb” that  
removed both the :delete\_attachments and :destroy\_attachment attribute  
accessors. I tried a number of releases and 81124e93 was the first that  
worked exactly as it was supposed to.

That my experience any way. I spent a lot of time trying to get this to  
work  
and nothing more recent would.

~Nate

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 1:02am UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/5 "2009-01-09T01:02:56Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Sean C. wrote:

> I’m not certain about the 0.7RC script/extension problem, but if you’re  
> using 0.6.9, and use script/extension install, go into  
> vendor/extensions/page\_attachments and run this:
> 
> git reset --hard 0.6.9
> 
> This will put the extension back onto a (hopefully) 0.6.9-compatible  
> version. Now run `git submodule init && git submodule update` to get  
> attachment\_fu, and then run `rake db:migrate:extensions radiant:extensions:update_all` from the root of your project.

step2 gives me this:

$ git submodule init && git submodule update  
Submodule ‘vendor/plugins/attachment\_fu’  
(git://github.com/technoweenie/attachment\_fu.git) registered for path  
‘vendor/plugins/attachment\_fu’  
Initialized empty Git repository in  
/home/gomix/radiant/vendor/extensions/page\_attachments/vendor/plugins/attachment\_fu/.git/  
remote: Counting objects: 1479, done.  
remote: Compressing objects: 100% (645/645), done.  
remote: Total 1479 (delta 792), reused 1462 (delta 784)  
Receiving objects: 100% (1479/1479), 215.36 KiB | 96 KiB/s, done.  
Resolving deltas: 100% (792/792), done.  
error: pathspec ‘42a37fab15c6d1dacc6043ee40b25de12b63ac04’ did not match  
any file(s) known to git.  
Unable to checkout ‘42a37fab15c6d1dacc6043ee40b25de12b63ac04’ in  
submodule path ‘vendor/plugins/attachment\_fu’

stopped there until further feedback for step 3 (rake)

and yes, im using

$ gem list radiant

\*\*\* LOCAL GEMS \*\*\*

radiant (0.6.9)

> > seem to do anything for me. Is it disabled in the RC?
> 
> exist):Class
> 
> (See full trace by running task with --trace)
> 
> The extension rake task should actually create the table, does someone  
> whats going on here?
> 
> regards
> 
> Guillermo

* * *

Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

* * *

Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

> >

> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.9 (GNU/Linux)  
Comment: Using GnuPG with Fedora - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAklmk+QACgkQcSOFtc3tqRU2VACgnfik1hp0GiurUQfrlI2WwUrS  
hPUAoIEpFuNBoPSvfyrG5a6QsxZlwgKC  
=oVtt  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![gomix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/858c86/32.png) [@gomix](https://www.ruby-forum.com/u/gomix)\
**Post date:** [January 9, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/problem-installing-extension-page-attachments/157266/6 "2009-01-09T14:34:20Z")

</div>

Thanks, Nate, I’ll re-tag the repo.

Sean
