Forum: Radiant CMS problem installing extension page_attachments

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.
1bd0ef3d806aa0d512fc93c2953b7267?d=identicon&s=25 Guillermo Gómez (gomix)
on 2009-01-09 00:30
(Received via mailing list)
-----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

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX
=FJ5b
-----END PGP SIGNATURE-----
95850ad96a2c8e44543071aaed139205?d=identicon&s=25 C. R. Oldham (Guest)
on 2009-01-09 00:34
(Received via mailing list)
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" <guillermo.gomez@gmail.com>
To: radiant@radiantcms.org
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

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX
=FJ5b
-----END PGP SIGNATURE-----
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (seancribbs)
on 2009-01-09 00:51
(Received via mailing list)
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
1bd0ef3d806aa0d512fc93c2953b7267?d=identicon&s=25 Guillermo Gómez (gomix)
on 2009-01-09 01:02
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sean Cribbs 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:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>

> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   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

iEYEARECAAYFAklmk+QACgkQcSOFtc3tqRU2VACgnfik1hp0GiurUQfrlI2WwUrS
hPUAoIEpFuNBoPSvfyrG5a6QsxZlwgKC
=oVtt
-----END PGP SIGNATURE-----
3c415075c9e778e2d38ebf4588a68464?d=identicon&s=25 Nate Turnage (Guest)
on 2009-01-09 02:45
(Received via mailing list)
On Thu, Jan 8, 2009 at 5:50 PM, Sean Cribbs <seancribbs@gmail.com>
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
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (seancribbs)
on 2009-01-09 14:34
(Received via mailing list)
Thanks, Nate, I'll re-tag the repo.

Sean
This topic is locked and can not be replied to.