# Attachment\_fu and rails 1.2.5 and rails 2.0pre

**URL:** <https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820>\
**Category:** Rails\
**Created:** [October 20, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820 "2007-10-20T21:23:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [October 20, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820/1 "2007-10-20T21:23:38Z")

</div>

Anyone successfully using attachment\_fu with rails 1.2.5 and/or  
rails 2.0 pre?

I would like to use database storage.

–  
Jochen K.

---

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [October 21, 2007, 12:30am UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820/2 "2007-10-21T00:30:47Z")

</div>

The attachment\_fu tests fail for me against the 2.0 preview release,  
as do those for acts\_as\_attachment and acts\_as\_paranoid.

-Sven

---

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [October 21, 2007, 12:51am UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820/3 "2007-10-21T00:51:56Z")

</div>

Jochen K. wrote:

> Anyone successfully using attachment\_fu with rails 1.2.5 and/or  
> rails 2.0 pre?
> 
> I would like to use database storage.

I am using attachment\_fu with Rails 1.2.5 with no problem, using both  
file and s3 storage. As Sven noted, the tests do fail, but, at least  
for my simple usage, it seems to be fine in operation.

- Danny

---

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [October 21, 2007, 1:18am UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820/4 "2007-10-21T01:18:41Z")

</div>

> I am using attachment\_fu with Rails 1.2.5 with no problem, using both  
> file and s3 storage. As Sven noted, the tests do fail, but, at least  
> for my simple usage, it seems to be fine in operation.
> 
> - Danny

I’d chalk it up to bad tests. I’m using it in about every one of my  
projects without problems (rails 2.0). acts\_as\_attachment is the old  
version, I don’t recall what version of rails it was written for, but  
I’d definitely suggest attachment\_fu.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)

---

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [October 21, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820/5 "2007-10-21T20:38:27Z")

</div>

Thanks, Rick, that’s good to know. The tests work better in 1.2.5 but  
by default they seem to want to test every option, and they require  
that you have a lot of stuff installed (rmagick, etc.). I’m not sure  
what you’re supposed to do as a plugin developer to write tests that  
are sufficient without being burdensome to run. And thanks for these  
plugins, in any case.

For what it’s worth the problems I’ve had with your plugin tests on  
the 2.0 preview release wither take the form of the tests trying to  
load, say, 1.2.5 gem rails, when 1.2.5.xxxx has already been loaded  
(if both 1.2.5 and 1.2.5.xxxx are installed) or they are complaints  
about the missing breakpoint library.

-Sven
