When installing the extension on my TxD account, I found ImageScience was not configured properly, or one doesn't have access to compilers to handle RubyInline or something like that. If someone else has gotten this to work, let me know. Otherwise, you can add this option to the "has_attachment" call in app/models/page_attachment.rb:
:processor => :Rmagick Good luck! Sean On 5/9/07, Sean Cribbs <[EMAIL PROTECTED]> wrote: > > Just FYI, > > Initially I tried dumping the whole plugin into the lib directory of the > extension, then requiring attachment_fu/init. That didn't work. Next I > tried taking the contents of init.rb and putting it in the activate method > of the extension, which worked previously. Still didn't work. I also tried > adding the lib directory of the attachment_fu plugin to the $LOAD_PATH (ugly > hack, I know). Still didn't work. In the end I had to revert to the method > I took when I was using acts_as_attachment, and this can be used in general > for any extensions that include plugins in their lib directory. > > 1) Take the entire contents of the init.rb file and put it somewhere in the > activate method of your extension. > 2) Export or use svn:externals to dump the contents of the plugin's lib > directory. If there are files in the root of the plugin's lib directory, > you won't be able to use svn:externals. I had to do this with 'geometry.rb' > from attachment_fu. > 3) Et voila! > > While there didn't seem to be any fundamental name-collision between > Radiant and attachment_fu, be careful that plugins you include in an > extension don't clash with the ones from other extensions. In the future > we'll have a way to specify extension dependencies, which should hopefully > abate some issues. > > Sean > > > Mislav Marohnić wrote: > On 5/9/07, Sean Cribbs <[EMAIL PROTECTED]> wrote: > > > Are you saying the extension doesn't work for you? I haven't tried it > in instance mode yet. > > > No, the plugin didn't work for me out of the box. I wanted to use > has_attachment on some models in my extension. > > Dependencies code was unable to resolve some modules inside AttachmentFu so > I needed to require stuff manually. I talked with Rick Olson and found out > the code is perfectly fine, but for some reason doesn't work in a Radiant > project. > > It was a couple days ago with the latest trunk checkout (then). > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
