# Attachment\_fu issue

**URL:** <https://www.ruby-forum.com/t/attachment-fu-issue/169464>\
**Category:** Rails\
**Created:** [June 4, 2009, 1:07am UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464 "2009-06-04T01:07:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![milandobrota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Post date:** [June 4, 2009, 1:07am UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464/1 "2009-06-04T01:07:24Z")

</div>

When you use attachment\_fu plugin you have to use one of the image  
processing libraries. However, when more of them are installed I get the  
error: no such file to load – application.rb How can I force  
attachment\_fu to use one specific image library?

---

<div class="post-metadata">

**Author:** ![milandobrota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Post date:** [June 4, 2009, 2:40am UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464/2 "2009-06-04T02:40:53Z")

</div>

You’ll need to give more information probably.  
Have you configured you model to use attachment\_fu? That is usually  
where  
you specify the processing. Reply with that and you might more help.  
Also  
what specifically are the processors you have installed? Are you sure  
that  
error isn’t related to something else going on in your controllers?

Cheers,  
Walter

On Thu, Jun 4, 2009 at 11:07 AM, Milan D. \<

---

<div class="post-metadata">

**Author:** ![milandobrota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Post date:** [June 4, 2009, 9:37am UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464/3 "2009-06-04T09:37:43Z")

</div>

I had similar problems using attachment\_fu for one project that I’m  
currently developing, You need to provide more info about the error and  
your  
app configuration, I will personally use paperclip is a great plugin, it  
has  
a smaller footprint and it has more options than attachment fu plus you  
can  
find some useful tutorials about how to use it.  
Regards

On Wed, Jun 3, 2009 at 6:07 PM, Milan D. \<  
removed\_email\_address@domain.invalid\> wrote:

> ## When you use attachment\_fu plugin you have to use one of the image processing libraries. However, when more of them are installed I get the error: no such file to load – application.rb How can I force attachment\_fu to use one specific image library?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Allan MacGregor Rehlaender  
[http://www.vagabonderz.org](http://www.vagabonderz.org)

---

<div class="post-metadata">

**Author:** ![milandobrota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Post date:** [June 5, 2009, 1:18am UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464/4 "2009-06-05T01:18:56Z")

</div>

I switched to Paperclip and it is working now 🙂  
Should have done that a long time ago 🙂

Milan D. wrote:

> OK, what I did was rename the application\_controller.rb to  
> application.rb and it started working. But only on localhost. On the  
> server it won’t create any model with attachments (even if I don’t  
> specify the picture - works fine on localhost). I changed the mode to  
> 777 to make sure that there are no permission issues and nothing  
> happened. I have all of the libraries installed on server (rmagick,  
> image\_science and mini\_magick). If I put gem.config in environment.rb it  
> says that I need to install the gem (both on localhost and server). I’ve  
> read somewhere that that is the issue with rails 2.2.2.  
> I have also tried specifying :with =\> :mini\_magick in the has\_attachment  
> options to force the plugin to use the specific library and it still  
> wouldn’t create the model.  
> Maybe I should try out paperclip.
> 
> P.S. Everything is working on the localhost. I have the feeling that  
> this is a configuration issue. Is there any way for gem dependencies to  
> break or something similar?

---

<div class="post-metadata">

**Author:** ![milandobrota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Post date:** [June 4, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464/5 "2009-06-04T19:01:23Z")

</div>

OK, what I did was rename the application\_controller.rb to  
application.rb and it started working. But only on localhost. On the  
server it won’t create any model with attachments (even if I don’t  
specify the picture - works fine on localhost). I changed the mode to  
777 to make sure that there are no permission issues and nothing  
happened. I have all of the libraries installed on server (rmagick,  
image\_science and mini\_magick). If I put gem.config in environment.rb it  
says that I need to install the gem (both on localhost and server). I’ve  
read somewhere that that is the issue with rails 2.2.2.  
I have also tried specifying :with =\> :mini\_magick in the has\_attachment  
options to force the plugin to use the specific library and it still  
wouldn’t create the model.  
Maybe I should try out paperclip.

P.S. Everything is working on the localhost. I have the feeling that  
this is a configuration issue. Is there any way for gem dependencies to  
break or something similar?
